1
0
Fork 0
mirror of https://codeberg.org/demostf/parser.git synced 2026-06-04 10:34:11 +02:00

clippy fixes

This commit is contained in:
Robin Appelman 2021-07-17 15:37:15 +02:00
commit 5573ec5db2
8 changed files with 42 additions and 58 deletions

View file

@ -15,7 +15,7 @@ impl ConstFnvHash {
let mut i = 0;
while i < bytes.len() {
let byte = bytes[i];
hash = hash ^ (byte as u64);
hash ^= byte as u64;
hash = hash.wrapping_mul(0x100000001b3);
i += 1;
}