Skip to content

Commit

Permalink
Add type args to transmute
Browse files Browse the repository at this point in the history
  • Loading branch information
usbalbin committed Dec 6, 2024
1 parent f207c89 commit 1a3e756
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/mdma.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ fn main() -> ! {
Transfer::init_master(
streams.1,
MemoryToMemory::new(),
unsafe { mem::transmute(&mut target_buffer[..]) }, // Dest: TCM (stack)
unsafe { mem::transmute::<&mut [u8], &mut [u8]>(&mut target_buffer[..]) }, // Dest: TCM (stack)
Some(source_buffer), // Source: TCM (stack)
config,
)
Expand Down

0 comments on commit 1a3e756

Please sign in to comment.