From a3546cbe0724ad7fbb5fc605c9ad67a36956effb Mon Sep 17 00:00:00 2001 From: Michel Heily Date: Sat, 17 Oct 2020 06:35:04 -0700 Subject: [PATCH] Run cargo-fmt Former-commit-id: b0a8fe8948fe8affe3377acf0c72af8d78717789 Former-commit-id: fee6919ea7cf16c5bf6e1bd21b993770cc08998f --- core/src/interrupt.rs | 1 - core/src/lib.rs | 1 - core/src/timer.rs | 3 +-- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/core/src/interrupt.rs b/core/src/interrupt.rs index 45dcb55..34226dd 100644 --- a/core/src/interrupt.rs +++ b/core/src/interrupt.rs @@ -4,7 +4,6 @@ use std::rc::Rc; use serde::{Deserialize, Serialize}; pub trait InterruptConnect { - // Connect a SharedInterruptFlags to this interrupt source fn connect_irq(&mut self, interrupt_flags: SharedInterruptFlags); } diff --git a/core/src/lib.rs b/core/src/lib.rs index 4702525..f695d20 100644 --- a/core/src/lib.rs +++ b/core/src/lib.rs @@ -26,7 +26,6 @@ extern crate log; #[macro_use] extern crate hex_literal; -#[macro_use] extern crate cfg_if; use zip; diff --git a/core/src/timer.rs b/core/src/timer.rs index 76d5127..af65710 100644 --- a/core/src/timer.rs +++ b/core/src/timer.rs @@ -142,8 +142,7 @@ impl Timers { timer.is_scheduled = true; timer.start_time = self.scheduler.timestamp(); let cycles = (timer.ticks_to_overflow() as usize) << timer.prescalar_shift; - self.scheduler - .push(EventType::TimerOverflow(id), cycles); + self.scheduler.push(EventType::TimerOverflow(id), cycles); } fn cancel_timer_event(&mut self, id: usize) {