Skip to content

Commit

Permalink
Make transmute types explicit for clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
hedgecrw committed Dec 10, 2024
1 parent be106c1 commit 298549a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion amm_sdk/src/storage/midi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ impl MidiInstrument {
if midi_number > 127 {
Self::GrandPiano
} else {
unsafe { core::mem::transmute(midi_number) }
unsafe { core::mem::transmute::<u8, MidiInstrument>(midi_number) }
}
}
}
Expand Down

0 comments on commit 298549a

Please sign in to comment.