mirror of
https://github.com/Astatin3/unshell.git
synced 2026-06-09 06:47:59 -06:00
Clean up the code a little bit
This commit is contained in:
@@ -41,6 +41,7 @@ impl Logger for DefaultLogger {
|
||||
}
|
||||
|
||||
pub fn set_logger_box(logger: Box<dyn Logger>) {
|
||||
#[cfg(feature = "log")]
|
||||
unsafe {
|
||||
LOGGER = Box::leak(logger);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user