Skip to content

Commit 5ce1643

Browse files
committed
use assume_init_mut
1 parent 0f021c1 commit 5ce1643

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cortex-m/src/macros.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ macro_rules! singleton {
8484
unsafe {
8585
$name.1 = true;
8686
$name.0 = ::core::mem::MaybeUninit::new(expr);
87-
Some(&mut *$name.0.as_mut_ptr())
87+
Some($name.0.assume_init_mut())
8888
}
8989
}
9090
})

0 commit comments

Comments
 (0)