run rustfmt on liblog
This commit is contained in:
parent
acb50e3481
commit
6a738c6a8a
1 changed files with 29 additions and 30 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue