Skip to content

Commit 2b2640f

Browse files
logger: Remove some unnecessary cfgs
This whole module is already gated by `cfg(feature = "logger")`, so no need to do that inside the module.
1 parent c80c232 commit 2b2640f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

uefi/src/helpers/logger.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,12 @@ use core::ptr;
1919
use core::sync::atomic::{AtomicPtr, Ordering};
2020

2121
/// Global logger object
22-
#[cfg(feature = "logger")]
2322
static LOGGER: Logger = Logger::new();
2423

2524
/// Set up logging
2625
///
2726
/// This is unsafe because you must arrange for the logger to be reset with
2827
/// disable() on exit from UEFI boot services.
29-
#[cfg(feature = "logger")]
3028
pub unsafe fn init(st: &mut SystemTable<Boot>) {
3129
// Connect the logger to stdout.
3230
LOGGER.set_output(st.stdout());

0 commit comments

Comments
 (0)