From 62f2dd7c6c89ca44f2096f535962b63f26f57730 Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Sat, 19 Oct 2024 20:53:10 -0400 Subject: Remove ability to panic on pre-initialized logger in rust Typically this would never occur, however due to the mystical nature of linkers this somehow has happened outside of demo builds --- arch/msp430/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'arch/msp430/src') diff --git a/arch/msp430/src/lib.rs b/arch/msp430/src/lib.rs index 2e16d5d2..fd8af7a7 100644 --- a/arch/msp430/src/lib.rs +++ b/arch/msp430/src/lib.rs @@ -14,7 +14,7 @@ use architecture::Msp430; #[no_mangle] #[allow(non_snake_case)] pub extern "C" fn CorePluginInit() -> bool { - binaryninja::logger::init(log::LevelFilter::Info).unwrap(); + binaryninja::logger::init(log::LevelFilter::Info); let arch = binaryninja::architecture::register_architecture( "msp430", |custom_handle, handle| Msp430::new(handle, custom_handle), -- cgit v1.3.1