Skip to content

Commit

Permalink
API simplification.
Browse files Browse the repository at this point in the history
  • Loading branch information
pnkfelix committed Nov 16, 2019
1 parent 7835afc commit 2754063
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tock/kernel/src/lib.rs
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -3045,15 +3045,11 @@ impl<C: 'static + Chip> Process<'a, C> {
#[allow(clippy::cast_ptr_alignment)] #[allow(clippy::cast_ptr_alignment)]
crate unsafe fn create( crate unsafe fn create(
chip: &'static C, chip: &'static C,
) -> (Option<&'static dyn ProcessType>, usize, usize) { ) -> &'static dyn ProcessType {
let mut process: &mut Process<C> = let mut process: &mut Process<C> =
&mut *((&mut []).as_mut_ptr() as *mut Process<'static, C>); &mut *((&mut []).as_mut_ptr() as *mut Process<'static, C>);


return ( process
Some(process),
0usize,
0usize,
);
} }


#[allow(clippy::cast_ptr_alignment)] #[allow(clippy::cast_ptr_alignment)]
Expand Down

0 comments on commit 2754063

Please sign in to comment.