Skip to content

Commit bd8c275

Browse files
torkeldanielssontherealprof
authored andcommitted
fix warning
1 parent 26d2148 commit bd8c275

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dac.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ where
114114
rcc.regs.apb1rstr.modify(|_, w| w.dacrst().set_bit());
115115
rcc.regs.apb1rstr.modify(|_, w| w.dacrst().clear_bit());
116116

117-
unsafe { mem::uninitialized() }
117+
unsafe { mem::MaybeUninit::uninit().assume_init() }
118118
}
119119

120120
macro_rules! dac {

0 commit comments

Comments
 (0)