We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7835afc commit 2754063Copy full SHA for 2754063
1 file changed
tock/kernel/src/lib.rs
@@ -3045,15 +3045,11 @@ impl<C: 'static + Chip> Process<'a, C> {
3045
#[allow(clippy::cast_ptr_alignment)]
3046
crate unsafe fn create(
3047
chip: &'static C,
3048
- ) -> (Option<&'static dyn ProcessType>, usize, usize) {
+ ) -> &'static dyn ProcessType {
3049
let mut process: &mut Process<C> =
3050
&mut *((&mut []).as_mut_ptr() as *mut Process<'static, C>);
3051
3052
- return (
3053
- Some(process),
3054
- 0usize,
3055
3056
- );
+ process
3057
}
3058
3059
0 commit comments