Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7585c073a6 |
@@ -115,7 +115,7 @@ fn parse_hex_pattern(body: &str) -> Option<Vec<u8>> {
|
|||||||
return None;
|
return None;
|
||||||
}
|
}
|
||||||
digits
|
digits
|
||||||
.chunks_exact(2)
|
.as_chunks::<2>()
|
||||||
.map(|pair| Some(hex_digit(pair[0])? << 4 | hex_digit(pair[1])?))
|
.map(|pair| Some(hex_digit(pair[0])? << 4 | hex_digit(pair[1])?))
|
||||||
.collect()
|
.collect()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user