diff options
| author | Srinivas Reddy Thatiparthy <thatiparthysreenivas@gmail.com> | 2016-05-27 08:06:17 +0530 |
|---|---|---|
| committer | Srinivas Reddy Thatiparthy <thatiparthysreenivas@gmail.com> | 2016-05-27 08:06:17 +0530 |
| commit | 38bbb60c8c5e0655f46bf3ad68985e533d1af776 (patch) | |
| tree | a0708d425c34c868345d7b4e3bb408813327abf7 | |
| parent | 97e3a2401e4b2f659d69ed0c0822cae04e3495b7 (diff) | |
| download | rust-38bbb60c8c5e0655f46bf3ad68985e533d1af776.tar.gz rust-38bbb60c8c5e0655f46bf3ad68985e533d1af776.zip | |
rustfmt on liblog
| -rw-r--r-- | src/liblog/lib.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/liblog/lib.rs b/src/liblog/lib.rs index a71f6efe54e..517cd016e8a 100644 --- a/src/liblog/lib.rs +++ b/src/liblog/lib.rs @@ -179,7 +179,7 @@ use std::io::prelude::*; use std::mem; use std::env; use std::slice; -use std::sync::{Once, Mutex, ONCE_INIT}; +use std::sync::{Mutex, ONCE_INIT, Once}; use directive::LOG_LEVEL_NAMES; @@ -290,9 +290,7 @@ pub fn log(level: u32, loc: &'static LogLocation, args: fmt::Arguments) { // frob the slot while we're doing the logging. This will destroy any logger // set during logging. let logger = LOCAL_LOGGER.with(|s| s.borrow_mut().take()); - let mut logger = logger.unwrap_or_else(|| { - Box::new(DefaultLogger { handle: io::stderr() }) - }); + let mut logger = logger.unwrap_or_else(|| Box::new(DefaultLogger { handle: io::stderr() })); logger.log(&LogRecord { level: LogLevel(level), args: args, |
