diff options
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 | } |