Skip to content

Commit a706e3b

Browse files
committed
fix clippy
1 parent dbc3abc commit a706e3b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/normalize.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ const fn linearize_batch<
1818
while array_idx < LINEARIZED_LEN {
1919
// TODO: use `char::from_u32_unchecked` when it becomes `const fn`.
2020
let raw_char = unsafe {
21-
core::mem::transmute::<_, char>(first_raw_char + array_idx as u32)
21+
core::mem::transmute::<u32, char>(
22+
first_raw_char + array_idx as u32,
23+
)
2224
};
2325

2426
if batch[batch_idx].0 == raw_char {

0 commit comments

Comments
 (0)