Skip to content

Commit 2754063

Browse files
committed
API simplification.
1 parent 7835afc commit 2754063

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

tock/kernel/src/lib.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3045,15 +3045,11 @@ impl<C: 'static + Chip> Process<'a, C> {
30453045
#[allow(clippy::cast_ptr_alignment)]
30463046
crate unsafe fn create(
30473047
chip: &'static C,
3048-
) -> (Option<&'static dyn ProcessType>, usize, usize) {
3048+
) -> &'static dyn ProcessType {
30493049
let mut process: &mut Process<C> =
30503050
&mut *((&mut []).as_mut_ptr() as *mut Process<'static, C>);
30513051

3052-
return (
3053-
Some(process),
3054-
0usize,
3055-
0usize,
3056-
);
3052+
process
30573053
}
30583054

30593055
#[allow(clippy::cast_ptr_alignment)]

0 commit comments

Comments
 (0)