We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2754063 commit c52b9f5Copy full SHA for c52b9f5
1 file changed
tock/kernel/src/lib.rs
@@ -3046,8 +3046,7 @@ impl<C: 'static + Chip> Process<'a, C> {
3046
crate unsafe fn create(
3047
chip: &'static C,
3048
) -> &'static dyn ProcessType {
3049
- let mut process: &mut Process<C> =
3050
- &mut *((&mut []).as_mut_ptr() as *mut Process<'static, C>);
+ let mut process: &mut Process<C> = None.unwrap();
3051
3052
process
3053
}
0 commit comments