run rustfmt on liblog

This commit is contained in:
Srinivas Reddy Thatiparthy 2016-10-12 23:45:03 +05:30
parent acb50e3481
commit 6a738c6a8a
No known key found for this signature in database
GPG Key ID: 091C58F4BFC36571
1 changed files with 29 additions and 30 deletions

View File

@ -52,9 +52,8 @@ pub fn parse_logging_spec(spec: &str) -> (Vec<LogDirective>, Option<String>) {
continue;
}
let mut parts = s.split('=');
let (log_level, name) = match (parts.next(),
parts.next().map(|s| s.trim()),
parts.next()) {
let (log_level, name) =
match (parts.next(), parts.next().map(|s| s.trim()), parts.next()) {
(Some(part0), None, None) => {
// if the single argument is a log-level string or number,
// treat that as a global fallback