Run cargo-fmt

Former-commit-id: b0a8fe8948fe8affe3377acf0c72af8d78717789
Former-commit-id: fee6919ea7cf16c5bf6e1bd21b993770cc08998f
This commit is contained in:
Michel Heily 2020-10-17 06:35:04 -07:00 committed by MishMish
parent 44c9e2c875
commit a3546cbe07
3 changed files with 1 additions and 4 deletions

View file

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

View file

@ -26,7 +26,6 @@ extern crate log;
#[macro_use]
extern crate hex_literal;
#[macro_use]
extern crate cfg_if;
use zip;

View file

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