From e5efdcd29c27974c816a6cb53af2ac13154864e3 Mon Sep 17 00:00:00 2001 From: Corwin Kuiper <corwin@kuiper.dev> Date: Thu, 6 Jan 2022 19:48:44 +0000 Subject: [PATCH] move use to inside function --- agb/src/lib.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/agb/src/lib.rs b/agb/src/lib.rs index 5f612f8b..6d2b42b6 100644 --- a/agb/src/lib.rs +++ b/agb/src/lib.rs @@ -161,13 +161,11 @@ pub mod syscall; /// Interactions with the internal timers pub mod timer; -#[cfg(not(test))] -use core::fmt::Write; - #[cfg(not(test))] #[panic_handler] #[allow(unused_must_use)] fn panic_implementation(info: &core::panic::PanicInfo) -> ! { + use core::fmt::Write; if let Some(mut mgba) = mgba::Mgba::new() { write!(mgba, "{}", info); mgba.set_level(mgba::DebugLevel::Fatal);