Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
shanemadden committed Oct 4, 2024
1 parent d18e46c commit c85337c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/constants/part.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ impl Part {
PART_NUM_TO_STR_MAP.with(|map| {
// SAFETY: &[Part] contains u8 values because it's repr(u8), safe to transmute
// to &[u8]
part_nums_to_str_array(map, unsafe { std::mem::transmute(parts) })
part_nums_to_str_array(map, unsafe { std::mem::transmute::<&[Part], &[u8]>(parts) })
})
}

Expand Down

0 comments on commit c85337c

Please sign in to comment.