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 --- rust/examples/pdb-ng/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rust/examples/pdb-ng/src') diff --git a/rust/examples/pdb-ng/src/lib.rs b/rust/examples/pdb-ng/src/lib.rs index e6a97be5..bc12caae 100644 --- a/rust/examples/pdb-ng/src/lib.rs +++ b/rust/examples/pdb-ng/src/lib.rs @@ -697,7 +697,7 @@ pub extern "C" fn PDBPluginInit() -> bool { } fn init_plugin() -> bool { - let _ = logger::init(LevelFilter::Debug); + logger::init(LevelFilter::Debug); DebugInfoParser::register("PDB", PDBParser {}); let settings = Settings::new(""); -- cgit v1.3.1