Fix clippy lint: unannotated transmute

This commit is contained in:
Alex Rutar
2024-11-12 15:57:03 +02:00
parent 74ec935c94
commit 5c722a6500

View File

@@ -473,7 +473,7 @@ const fn generate_table<const LEN: usize>(sparse_data: &[(char, char)]) -> [char
let mut i = 0u32;
let mut j = 0;
while i < table.len() as u32 {
let key = unsafe { transmute(start + i) };
let key = unsafe { transmute::<u32, char>(start + i) };
if sparse_data[j].0 == key {
table[i as usize] = DATA1[j].1;
j += 1;