mirror of
https://github.com/italicsjenga/agb.git
synced 2025-02-02 20:46:40 +11:00
move use to inside function
This commit is contained in:
parent
222efe9122
commit
e5efdcd29c
1 changed files with 1 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue