Skip to content

Commit fd9aebc

Browse files
committed
Apply cargo fmt
1 parent c359e42 commit fd9aebc

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/terminal.rs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,14 @@ impl Build for TerminalLoggerBuilder {
102102
self.common.build_with_drain(format.build())
103103
}
104104
#[cfg(feature = "json")]
105-
Format::Json => {
106-
match self.destination {
107-
Destination::Stdout => self.common.build_with_drain(slog_json::Json::default(std::io::stdout())),
108-
Destination::Stderr => self.common.build_with_drain(slog_json::Json::default(std::io::stderr())),
109-
}
110-
}
105+
Format::Json => match self.destination {
106+
Destination::Stdout => self
107+
.common
108+
.build_with_drain(slog_json::Json::default(std::io::stdout())),
109+
Destination::Stderr => self
110+
.common
111+
.build_with_drain(slog_json::Json::default(std::io::stderr())),
112+
},
111113
};
112114
Ok(logger)
113115
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy