Skip to content

Commit 7c125c7

Browse files
committed
fix clippy
1 parent 2d9aea5 commit 7c125c7

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cranelift/entity/src/imm_set.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ where
4545
#[inline]
4646
fn key_from_word_and_bit(word: u32, bit: u8) -> K {
4747
let word = usize::try_from(word).unwrap();
48-
let bit = usize::try_from(bit).unwrap();
48+
let bit = usize::from(bit);
4949
K::new(word * Self::BITS_PER_WORD + bit)
5050
}
5151

0 commit comments

Comments
 (0)