Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
noib3 committed May 27, 2024
1 parent dbc3abc commit a706e3b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/normalize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ const fn linearize_batch<
while array_idx < LINEARIZED_LEN {
// TODO: use `char::from_u32_unchecked` when it becomes `const fn`.
let raw_char = unsafe {
core::mem::transmute::<_, char>(first_raw_char + array_idx as u32)
core::mem::transmute::<u32, char>(
first_raw_char + array_idx as u32,
)
};

if batch[batch_idx].0 == raw_char {
Expand Down

0 comments on commit a706e3b

Please sign in to comment.