diff options
| author | Ulf Lilleengen <[email protected]> | 2024-01-25 08:39:25 +0100 |
|---|---|---|
| committer | Ulf Lilleengen <[email protected]> | 2024-01-25 08:39:25 +0100 |
| commit | 1263d28595d7f92e348c866764e6e6275b08967f (patch) | |
| tree | f590ee6d4f3d56469c48a1a74de627945ce657ea | |
| parent | 3739cc069914861d891a21734b3da9418bd01e9f (diff) | |
nightly fmt
| -rw-r--r-- | embassy-nrf/src/rng.rs | 3 | ||||
| -rw-r--r-- | embassy-nrf/src/time_driver.rs | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/embassy-nrf/src/rng.rs b/embassy-nrf/src/rng.rs index 667637bfa..40b73231b 100644 --- a/embassy-nrf/src/rng.rs +++ b/embassy-nrf/src/rng.rs | |||
| @@ -208,8 +208,7 @@ impl<'d, T: Instance> rand_core::CryptoRng for Rng<'d, T> {} | |||
| 208 | pub(crate) mod sealed { | 208 | pub(crate) mod sealed { |
| 209 | use core::cell::{Ref, RefCell, RefMut}; | 209 | use core::cell::{Ref, RefCell, RefMut}; |
| 210 | 210 | ||
| 211 | use critical_section::CriticalSection; | 211 | use critical_section::{CriticalSection, Mutex}; |
| 212 | use critical_section::Mutex; | ||
| 213 | use embassy_sync::waitqueue::WakerRegistration; | 212 | use embassy_sync::waitqueue::WakerRegistration; |
| 214 | 213 | ||
| 215 | use super::*; | 214 | use super::*; |
diff --git a/embassy-nrf/src/time_driver.rs b/embassy-nrf/src/time_driver.rs index b41169c01..3407c9504 100644 --- a/embassy-nrf/src/time_driver.rs +++ b/embassy-nrf/src/time_driver.rs | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | use core::cell::Cell; | 1 | use core::cell::Cell; |
| 2 | use core::sync::atomic::{compiler_fence, AtomicU32, AtomicU8, Ordering}; | ||
| 2 | use core::{mem, ptr}; | 3 | use core::{mem, ptr}; |
| 3 | 4 | ||
| 4 | use core::sync::atomic::{compiler_fence, AtomicU32, AtomicU8, Ordering}; | ||
| 5 | use critical_section::CriticalSection; | 5 | use critical_section::CriticalSection; |
| 6 | use embassy_sync::blocking_mutex::raw::CriticalSectionRawMutex; | 6 | use embassy_sync::blocking_mutex::raw::CriticalSectionRawMutex; |
| 7 | use embassy_sync::blocking_mutex::CriticalSectionMutex as Mutex; | 7 | use embassy_sync::blocking_mutex::CriticalSectionMutex as Mutex; |
