Skip to content

Commit

Permalink
fix: add allow static_mut_refs
Browse files Browse the repository at this point in the history
Signed-off-by: Dat Tien Nguyen <phongtomfapp@gmail.com>
  • Loading branch information
datbeohbbh committed Oct 15, 2024
1 parent b28e899 commit 465c5cd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,7 @@ pub mod prelude {
///
/// Currently, this is a `log` adaptor behind a `Once` to ensure there is no clobbering.
#[cfg(any(test, feature = "default-logger"))]
#[allow(static_mut_refs)]
pub fn default_logger() -> slog::Logger {
use slog::{o, Drain};
use std::sync::{Mutex, Once};
Expand Down

0 comments on commit 465c5cd

Please sign in to comment.