Run cargo-fmt
Former-commit-id: b0a8fe8948fe8affe3377acf0c72af8d78717789 Former-commit-id: fee6919ea7cf16c5bf6e1bd21b993770cc08998f
This commit is contained in:
parent
44c9e2c875
commit
a3546cbe07
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -26,7 +26,6 @@ extern crate log;
|
|||
#[macro_use]
|
||||
extern crate hex_literal;
|
||||
|
||||
#[macro_use]
|
||||
extern crate cfg_if;
|
||||
|
||||
use zip;
|
||||
|
|
|
@ -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) {
|
||||
|
|
Reference in a new issue