File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1- use simple_logger:: { SimpleLogger , set_up_color_terminal} ;
21use log:: { Log , Metadata , Record } ;
2+ use simple_logger:: { set_up_color_terminal, SimpleLogger } ;
33
44struct WrapperLogger {
5- simple_logger : SimpleLogger
5+ simple_logger : SimpleLogger ,
66}
77
88impl Log for WrapperLogger {
Original file line number Diff line number Diff line change @@ -350,7 +350,9 @@ impl SimpleLogger {
350350 levels. sort_by_key ( |( name, _level) | name. len ( ) . wrapping_neg ( ) ) ;
351351
352352 let max_level = self . module_levels . iter ( ) . map ( |( _name, level) | level) . copied ( ) . max ( ) ;
353- max_level. map ( |lvl| lvl. max ( self . default_level ) ) . unwrap_or ( self . default_level )
353+ max_level
354+ . map ( |lvl| lvl. max ( self . default_level ) )
355+ . unwrap_or ( self . default_level )
354356 }
355357
356358 /// 'Init' the actual logger and instantiate it,
@@ -525,7 +527,7 @@ pub fn set_up_color_terminal() {
525527///
526528/// This method does nothing if not running on Windows with the colored feature.
527529#[ cfg( not( all( windows, feature = "colored" ) ) ) ]
528- pub fn set_up_color_terminal ( ) { }
530+ pub fn set_up_color_terminal ( ) { }
529531
530532/// Initialise the logger with its default configuration.
531533///
You can’t perform that action at this time.
0 commit comments