Skip to content

Commit 64ddf13

Browse files
committed
Fix last clippy warning
1 parent 8683dd1 commit 64ddf13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hypersync-format/src/types/util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
pub fn decode_hex(hex: &str) -> Result<Vec<u8>, faster_hex::Error> {
2-
let len = hex.as_bytes().len();
2+
let len = hex.len();
33
let mut dst = vec![0; len / 2];
44

55
faster_hex::hex_decode(hex.as_bytes(), &mut dst)?;

0 commit comments

Comments
 (0)