diff options
Diffstat (limited to 'src/logging.rs')
-rw-r--r-- | src/logging.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/logging.rs b/src/logging.rs index ff2a7735..421223e8 100644 --- a/src/logging.rs +++ b/src/logging.rs @@ -32,7 +32,7 @@ impl<T: Send + io::Write> Logger<T> { #[cfg_attr(feature = "clippy", allow(new_ret_no_self))] pub fn new(output: T, level: log::LevelFilter) -> Logger<io::LineWriter<T>> { Logger { - level: level, + level, output: sync::Mutex::new(io::LineWriter::new(output)) } } |