Skip to content

Commit 38bbb60

Browse files
committed
rustfmt on liblog
1 parent 97e3a24 commit 38bbb60

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/liblog/lib.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ use std::io::prelude::*;
179179
use std::mem;
180180
use std::env;
181181
use std::slice;
182-
use std::sync::{Once, Mutex, ONCE_INIT};
182+
use std::sync::{Mutex, ONCE_INIT, Once};
183183

184184
use directive::LOG_LEVEL_NAMES;
185185

@@ -290,9 +290,7 @@ pub fn log(level: u32, loc: &'static LogLocation, args: fmt::Arguments) {
290290
// frob the slot while we're doing the logging. This will destroy any logger
291291
// set during logging.
292292
let logger = LOCAL_LOGGER.with(|s| s.borrow_mut().take());
293-
let mut logger = logger.unwrap_or_else(|| {
294-
Box::new(DefaultLogger { handle: io::stderr() })
295-
});
293+
let mut logger = logger.unwrap_or_else(|| Box::new(DefaultLogger { handle: io::stderr() }));
296294
logger.log(&LogRecord {
297295
level: LogLevel(level),
298296
args: args,

0 commit comments

Comments
 (0)