Skip to content

Commit

Permalink
fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ekiwi committed Dec 19, 2024
1 parent 6634a18 commit 3597a85
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/bv/arithmetic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,10 +256,7 @@ pub(crate) fn shift_right(
clear(dst);

// check to see if we are shifting for more than our width
let shift_amount = match get_shift_amount(b, width) {
None => return None,
Some(value) => value,
};
let shift_amount = get_shift_amount(b, width)?;

// otherwise we actually perform the shift by converting it to a slice
let hi = width - 1;
Expand Down

0 comments on commit 3597a85

Please sign in to comment.