Skip to content
Permalink
Browse files

API simplification.

  • Loading branch information
pnkfelix committed Nov 16, 2019
1 parent 7835afc commit 27540630839cf2efc4a52dee42657fca35dce0f0
Showing with 2 additions and 6 deletions.
  1. +2 −6 tock/kernel/src/lib.rs
@@ -3045,15 +3045,11 @@ impl<C: 'static + Chip> Process<'a, C> {
#[allow(clippy::cast_ptr_alignment)]
crate unsafe fn create(
chip: &'static C,
) -> (Option<&'static dyn ProcessType>, usize, usize) {
) -> &'static dyn ProcessType {
let mut process: &mut Process<C> =
&mut *((&mut []).as_mut_ptr() as *mut Process<'static, C>);

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

#[allow(clippy::cast_ptr_alignment)]

0 comments on commit 2754063

Please sign in to comment.
You can’t perform that action at this time.