From 205bb98cb8a61dd2bc2fc154e3e81c6df0d649a2 Mon Sep 17 00:00:00 2001 From: Rutger Broekhoff Date: Wed, 24 Jan 2024 18:12:21 +0100 Subject: Clean up claim validation test --- rs/common/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rs/common/src') 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> { for (i, c) in value.bytes().enumerate() { if let Some(b) = decode_nibble(c) { if i % 2 == 0 { - buf[i / 2] |= b << 4; + buf[i / 2] = b << 4; } else { buf[i / 2] |= b; } -- cgit v1.2.3