File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -102,12 +102,14 @@ impl Build for TerminalLoggerBuilder {
102
102
self . common . build_with_drain ( format. build ( ) )
103
103
}
104
104
#[ 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
+ } ,
111
113
} ;
112
114
Ok ( logger)
113
115
}
You can’t perform that action at this time.
0 commit comments