Lint/format fixes

This commit is contained in:
Chris Price 2024-01-09 15:57:13 +00:00
parent 102e8d8ad6
commit 372a9b2833
2 changed files with 2 additions and 4 deletions

View File

@ -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();

View File

@ -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>>,