Skip to content

Commit

Permalink
Fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
nvswa committed May 10, 2024
1 parent d54068f commit d2c2599
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/logging.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ pub fn init(log_level: Level, core_id: i32) {
unsafe {
LOGGER.lcore_id = core_id;
LOGGER.log_level = log_level;
log::set_logger(&LOGGER).unwrap_or_else(|e| {
log::set_logger(&mut *std::ptr::addr_of_mut!(LOGGER)).unwrap_or_else(|e| {
error!("failed to init logging: {}", e);
});
}
Expand Down

0 comments on commit d2c2599

Please sign in to comment.