From b40e5bd7b23f42207f0f1abfab2f9f2a6530a1cc Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Sat, 20 Oct 2018 17:09:01 +0200 Subject: [PATCH] Group imports --- src/interrupts.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/interrupts.rs b/src/interrupts.rs index e931aede..b880e831 100644 --- a/src/interrupts.rs +++ b/src/interrupts.rs @@ -1,5 +1,7 @@ +use gdt; use pic8259_simple::ChainedPics; use spin; +use x86_64::structures::idt::{ExceptionStackFrame, InterruptDescriptorTable}; pub const PIC_1_OFFSET: u8 = 32; pub const PIC_2_OFFSET: u8 = PIC_1_OFFSET + 8; @@ -10,9 +12,6 @@ pub static PICS: spin::Mutex = pub const TIMER_INTERRUPT_ID: u8 = PIC_1_OFFSET; pub const KEYBOARD_INTERRUPT_ID: u8 = PIC_1_OFFSET + 1; -use gdt; -use x86_64::structures::idt::{ExceptionStackFrame, InterruptDescriptorTable}; - lazy_static! { static ref IDT: InterruptDescriptorTable = { let mut idt = InterruptDescriptorTable::new();