Skip to content

Commit e7479f1

Browse files
Fix warning from unneeded macro_use
Fixup for #526. We still use one logging macro, but only if certain `cfg` attributes match, so call it by the full path of `log::error`.
1 parent 5939e57 commit e7479f1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

uefi-services/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
#![feature(alloc_error_handler)]
2121
#![feature(abi_efiapi)]
2222

23-
#[macro_use]
2423
extern crate log;
2524
// Core types.
2625
extern crate uefi;
@@ -212,7 +211,7 @@ fn panic_handler(info: &core::panic::PanicInfo) -> ! {
212211
}
213212

214213
// If we don't have any shutdown mechanism handy, the best we can do is loop
215-
error!("Could not shut down, please power off the system manually...");
214+
log::error!("Could not shut down, please power off the system manually...");
216215

217216
cfg_if! {
218217
if #[cfg(target_arch = "x86_64")] {

0 commit comments

Comments
 (0)