aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlf Lilleengen <[email protected]>2024-01-24 19:28:28 +0100
committerUlf Lilleengen <[email protected]>2024-01-24 21:23:54 +0100
commit7d961a7f447a56a458a556b747710ec3375950d7 (patch)
tree2f55fb03ceb04cf424c7246f9f7323b0c65109a6
parent3ac52b2c4857048d56d943ed24c6d72847e60f0a (diff)
cargo fmt
-rw-r--r--embassy-nrf/src/rng.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/embassy-nrf/src/rng.rs b/embassy-nrf/src/rng.rs
index 6145dd14f..a65ad5518 100644
--- a/embassy-nrf/src/rng.rs
+++ b/embassy-nrf/src/rng.rs
@@ -44,7 +44,6 @@ impl<T: Instance> interrupt::typelevel::Handler<T::Interrupt> for InterruptHandl
44 if state.ptr == state.end { 44 if state.ptr == state.end {
45 state.waker.wake(); 45 state.waker.wake();
46 } 46 }
47
48 } 47 }
49 }); 48 });
50 } 49 }
@@ -113,7 +112,6 @@ impl<'d, T: Instance> Rng<'d, T> {
113 return; // Nothing to fill 112 return; // Nothing to fill
114 } 113 }
115 114
116
117 let range = dest.as_mut_ptr_range(); 115 let range = dest.as_mut_ptr_range();
118 // Even if we've preempted the interrupt, it can't preempt us again, 116 // Even if we've preempted the interrupt, it can't preempt us again,
119 // so we don't need to worry about the order we write these in. 117 // 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> {
208impl<'d, T: Instance> rand_core::CryptoRng for Rng<'d, T> {} 206impl<'d, T: Instance> rand_core::CryptoRng for Rng<'d, T> {}
209 207
210pub(crate) mod sealed { 208pub(crate) mod sealed {
211 use core::cell::{Ref, RefMut, RefCell}; 209 use core::cell::{Ref, RefCell, RefMut};
212 210
213 use critical_section::Mutex;
214 use critical_section::CriticalSection; 211 use critical_section::CriticalSection;
212 use critical_section::Mutex;
215 use embassy_sync::waitqueue::WakerRegistration; 213 use embassy_sync::waitqueue::WakerRegistration;
216 214
217 use super::*; 215 use super::*;