diff --git a/examples/mdma.rs b/examples/mdma.rs index 1b3451af..01d3a660 100644 --- a/examples/mdma.rs +++ b/examples/mdma.rs @@ -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, )