From e7479f1c12690ad6614019ce01b1cc0d5d3220b2 Mon Sep 17 00:00:00 2001 From: Nicholas Bishop Date: Tue, 11 Oct 2022 16:28:20 -0400 Subject: [PATCH] Fix warning from unneeded `macro_use` Fixup for https://github.com/rust-osdev/uefi-rs/pull/526. We still use one logging macro, but only if certain `cfg` attributes match, so call it by the full path of `log::error`. --- uefi-services/src/lib.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/uefi-services/src/lib.rs b/uefi-services/src/lib.rs index 4361ebda0..efbe3dfe5 100644 --- a/uefi-services/src/lib.rs +++ b/uefi-services/src/lib.rs @@ -20,7 +20,6 @@ #![feature(alloc_error_handler)] #![feature(abi_efiapi)] -#[macro_use] extern crate log; // Core types. extern crate uefi; @@ -212,7 +211,7 @@ fn panic_handler(info: &core::panic::PanicInfo) -> ! { } // If we don't have any shutdown mechanism handy, the best we can do is loop - error!("Could not shut down, please power off the system manually..."); + log::error!("Could not shut down, please power off the system manually..."); cfg_if! { if #[cfg(target_arch = "x86_64")] {