summaryrefslogtreecommitdiff
path: root/src/kernel.rs
diff options
context:
space:
mode:
authorChristian Cunningham <c@localhost>2022-08-22 22:16:58 -0700
committerChristian Cunningham <c@localhost>2022-08-22 22:16:58 -0700
commita1c8269dc367a6b37986417aa650ec65ac77aae3 (patch)
tree5f524a7a391df1e770e01db7dc4ae37b85374fa9 /src/kernel.rs
parent3a0752f734f4370a05e45958499ddd9c3a4b3919 (diff)
Fix unused imports
Diffstat (limited to 'src/kernel.rs')
-rw-r--r--src/kernel.rs10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/kernel.rs b/src/kernel.rs
index 514596d..42de2be 100644
--- a/src/kernel.rs
+++ b/src/kernel.rs
@@ -9,17 +9,21 @@
#![test_runner(crate::test_runner)]
#![reexport_test_harness_main = "test_main"]
-mod qemu;
mod serial;
mod sync;
mod tests;
mod vga;
-use qemu::*;
use serial::*;
-use tests::*;
use vga::*;
use core::panic::PanicInfo;
+#[cfg(test)]
+mod qemu;
+#[cfg(test)]
+use qemu::*;
+#[cfg(test)]
+use tests::*;
+
/// This function is called on panic.
#[cfg(test)]
#[panic_handler]