Skip to content

Commit

Permalink
fmt + clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Dzejkop committed Feb 26, 2024
1 parent 42e491d commit d8f5f9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/bits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ impl Bits {
let mut x = *self;

if rot < 0 {
x.rotate_left(rot.abs() as usize * 4)
x.rotate_left(rot.unsigned_abs() as usize * 4)
} else {
x.rotate_right(rot as usize * 4)
}
Expand Down
2 changes: 1 addition & 1 deletion src/bits/all_bit_patterns_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ fn all_bit_patterns() -> eyre::Result<()> {
.code
.rotations()
.map(|bits| BitVec::<_, Msb0>::from_slice(bits.0.as_slice()))
.map(|bv| bit_vec_to_str(bv))
.map(bit_vec_to_str)
.enumerate()
.map(|(i, x)| (i as i32 - 15, x))
.collect();
Expand Down

0 comments on commit d8f5f9e

Please sign in to comment.