We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f021c1 commit 5ce1643Copy full SHA for 5ce1643
cortex-m/src/macros.rs
@@ -84,7 +84,7 @@ macro_rules! singleton {
84
unsafe {
85
$name.1 = true;
86
$name.0 = ::core::mem::MaybeUninit::new(expr);
87
- Some(&mut *$name.0.as_mut_ptr())
+ Some($name.0.assume_init_mut())
88
}
89
90
})
0 commit comments