浏览代码

Remove unneeded extern crates

Isaac Woods 6 年之前
父节点
当前提交
50f9071395
共有 4 个文件被更改,包括 3 次插入7 次删除
  1. 0 1
      acpi/src/hpet.rs
  2. 1 6
      acpi/src/lib.rs
  3. 1 0
      acpi/src/rsdp_search.rs
  4. 1 0
      acpi/src/sdt.rs

+ 0 - 1
acpi/src/hpet.rs

@@ -43,7 +43,6 @@ pub(crate) fn parse_hpet(
     // Make sure the HPET's in system memory
     assert_eq!(hpet.base_address.address_space, 0);
 
-    info!("HPET address: {:#?}", hpet.base_address);
     acpi.hpet = Some(HpetInfo {
         event_timer_block_id: hpet.event_timer_block_id,
         base_address: hpet.base_address.address as usize,

+ 1 - 6
acpi/src/lib.rs

@@ -26,16 +26,11 @@
 #![feature(alloc)]
 #![feature(exclusive_range_pattern)]
 
+extern crate alloc;
 #[cfg_attr(test, macro_use)]
 #[cfg(test)]
 extern crate std;
 
-#[macro_use]
-extern crate log;
-extern crate alloc;
-extern crate bit_field;
-extern crate typenum;
-
 mod fadt;
 pub mod handler;
 mod hpet;

+ 1 - 0
acpi/src/rsdp_search.rs

@@ -1,5 +1,6 @@
 use crate::{parse_validated_rsdp, rsdp::Rsdp, Acpi, AcpiError, AcpiHandler};
 use core::{mem, ops::RangeInclusive};
+use log::warn;
 
 /// The pointer to the EBDA (Extended Bios Data Area) start segment pointer
 const EBDA_START_SEGMENT_PTR: usize = 0x40e;

+ 1 - 0
acpi/src/sdt.rs

@@ -1,5 +1,6 @@
 use crate::{fadt::Fadt, hpet::HpetTable, madt::Madt, Acpi, AcpiError, AcpiHandler};
 use core::{marker::PhantomData, mem, str};
+use log::{trace, warn};
 use typenum::Unsigned;
 
 /// A union that represents a field that is not necessarily present and is only present in a later