cargo fmt
This commit is contained in:
parent
3ac52b2c48
commit
7d961a7f44
1 changed files with 2 additions and 4 deletions
|
@ -44,7 +44,6 @@ impl<T: Instance> interrupt::typelevel::Handler<T::Interrupt> for InterruptHandl
|
||||||
if state.ptr == state.end {
|
if state.ptr == state.end {
|
||||||
state.waker.wake();
|
state.waker.wake();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -113,7 +112,6 @@ impl<'d, T: Instance> Rng<'d, T> {
|
||||||
return; // Nothing to fill
|
return; // Nothing to fill
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
let range = dest.as_mut_ptr_range();
|
let range = dest.as_mut_ptr_range();
|
||||||
// Even if we've preempted the interrupt, it can't preempt us again,
|
// Even if we've preempted the interrupt, it can't preempt us again,
|
||||||
// so we don't need to worry about the order we write these in.
|
// so we don't need to worry about the order we write these in.
|
||||||
|
@ -208,10 +206,10 @@ impl<'d, T: Instance> rand_core::RngCore for Rng<'d, T> {
|
||||||
impl<'d, T: Instance> rand_core::CryptoRng for Rng<'d, T> {}
|
impl<'d, T: Instance> rand_core::CryptoRng for Rng<'d, T> {}
|
||||||
|
|
||||||
pub(crate) mod sealed {
|
pub(crate) mod sealed {
|
||||||
use core::cell::{Ref, RefMut, RefCell};
|
use core::cell::{Ref, RefCell, RefMut};
|
||||||
|
|
||||||
use critical_section::Mutex;
|
|
||||||
use critical_section::CriticalSection;
|
use critical_section::CriticalSection;
|
||||||
|
use critical_section::Mutex;
|
||||||
use embassy_sync::waitqueue::WakerRegistration;
|
use embassy_sync::waitqueue::WakerRegistration;
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue