mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-22 06:42:32 +00:00
Lint/format fixes
This commit is contained in:
parent
102e8d8ad6
commit
372a9b2833
@ -56,7 +56,7 @@ impl MockDriver {
|
||||
critical_section::with(|cs| {
|
||||
let mut inner = self.0.borrow_ref_mut(cs);
|
||||
|
||||
inner.now = inner.now + duration;
|
||||
inner.now += duration;
|
||||
|
||||
let now = inner.now.as_ticks();
|
||||
|
||||
|
@ -180,14 +180,12 @@ mod tests {
|
||||
use core::cell::Cell;
|
||||
use core::task::{RawWaker, RawWakerVTable, Waker};
|
||||
use std::rc::Rc;
|
||||
use std::sync::Mutex;
|
||||
|
||||
use serial_test::serial;
|
||||
|
||||
use crate::driver::{AlarmHandle, Driver};
|
||||
use crate::driver_mock::MockDriver;
|
||||
use crate::queue_generic::QUEUE;
|
||||
use crate::{Instant, Duration};
|
||||
use crate::{Duration, Instant};
|
||||
|
||||
struct TestWaker {
|
||||
pub awoken: Rc<Cell<bool>>,
|
||||
|
Loading…
Reference in New Issue
Block a user