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