diff options
author | Rutger Broekhoff | 2024-01-24 18:12:21 +0100 |
---|---|---|
committer | Rutger Broekhoff | 2024-01-24 18:12:21 +0100 |
commit | 205bb98cb8a61dd2bc2fc154e3e81c6df0d649a2 (patch) | |
tree | ebc2707a1b8a5cbdb9a2636d26fa41ebf4e9d70e /rs/common/src | |
parent | dbe5de070b8b4c86abe27bb3378e1685632dfdab (diff) | |
download | gitolfs3-205bb98cb8a61dd2bc2fc154e3e81c6df0d649a2.tar.gz gitolfs3-205bb98cb8a61dd2bc2fc154e3e81c6df0d649a2.zip |
Clean up claim validation test
Diffstat (limited to 'rs/common/src')
-rw-r--r-- | rs/common/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rs/common/src/lib.rs b/rs/common/src/lib.rs index 89c3286..995352d 100644 --- a/rs/common/src/lib.rs +++ b/rs/common/src/lib.rs | |||
@@ -136,7 +136,7 @@ fn parse_hex_exact(value: &str, buf: &mut [u8]) -> Result<(), ParseHexError> { | |||
136 | for (i, c) in value.bytes().enumerate() { | 136 | for (i, c) in value.bytes().enumerate() { |
137 | if let Some(b) = decode_nibble(c) { | 137 | if let Some(b) = decode_nibble(c) { |
138 | if i % 2 == 0 { | 138 | if i % 2 == 0 { |
139 | buf[i / 2] |= b << 4; | 139 | buf[i / 2] = b << 4; |
140 | } else { | 140 | } else { |
141 | buf[i / 2] |= b; | 141 | buf[i / 2] |= b; |
142 | } | 142 | } |