Address several clippy warnings

This commit is contained in:
topjohnwu
2025-03-03 02:15:06 -08:00
parent 2b47d47215
commit c6c1a17ae6
4 changed files with 26 additions and 15 deletions
+1 -1
View File
@@ -95,7 +95,7 @@ fn hex2byte(hex: &[u8]) -> Vec<u8> {
let low = bytes[1].to_ascii_uppercase() - b'0';
let h = if high > 9 { high - 7 } else { high };
let l = if low > 9 { low - 7 } else { low };
v.push(h << 4 | l);
v.push((h << 4) | l);
}
v
}