We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8683dd1 commit 64ddf13Copy full SHA for 64ddf13
hypersync-format/src/types/util.rs
@@ -1,5 +1,5 @@
1
pub fn decode_hex(hex: &str) -> Result<Vec<u8>, faster_hex::Error> {
2
- let len = hex.as_bytes().len();
+ let len = hex.len();
3
let mut dst = vec![0; len / 2];
4
5
faster_hex::hex_decode(hex.as_bytes(), &mut dst)?;
0 commit comments