We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dbc3abc commit a706e3bCopy full SHA for a706e3b
src/normalize.rs
@@ -18,7 +18,9 @@ const fn linearize_batch<
18
while array_idx < LINEARIZED_LEN {
19
// TODO: use `char::from_u32_unchecked` when it becomes `const fn`.
20
let raw_char = unsafe {
21
- core::mem::transmute::<_, char>(first_raw_char + array_idx as u32)
+ core::mem::transmute::<u32, char>(
22
+ first_raw_char + array_idx as u32,
23
+ )
24
};
25
26
if batch[batch_idx].0 == raw_char {
0 commit comments