Fix misc clippy warnings

Why does it want me to use bytecount? It's not even faster
This commit is contained in:
2020-12-16 20:05:08 +01:00
parent bd8d525d13
commit 308fbc503f
4 changed files with 8 additions and 3 deletions

View File

@@ -65,7 +65,7 @@ fn x_mask_permutations(mut x_mask: u64, permutations: &mut Vec<u64>) {
while x_mask > 0 {
let trailing = x_mask.trailing_zeros();
let bit = 1 << trailing + offset;
let bit = 1 << (trailing + offset);
x_mask >>= trailing + 1;
offset += trailing + 1;