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) {