File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -292,13 +292,16 @@ impl<'a> PlatformLogWriter<'a> {
292
292
293
293
#[ cfg( target_os = "android" ) ]
294
294
pub fn new ( level : Level , tag : & CStr ) -> PlatformLogWriter {
295
- Self :: new_with_priority ( match level {
296
- Level :: Warn => LogPriority :: WARN ,
297
- Level :: Info => LogPriority :: INFO ,
298
- Level :: Debug => LogPriority :: DEBUG ,
299
- Level :: Error => LogPriority :: ERROR ,
300
- Level :: Trace => LogPriority :: VERBOSE ,
301
- } )
295
+ Self :: new_with_priority (
296
+ match level {
297
+ Level :: Warn => LogPriority :: WARN ,
298
+ Level :: Info => LogPriority :: INFO ,
299
+ Level :: Debug => LogPriority :: DEBUG ,
300
+ Level :: Error => LogPriority :: ERROR ,
301
+ Level :: Trace => LogPriority :: VERBOSE ,
302
+ } ,
303
+ tag,
304
+ )
302
305
}
303
306
304
307
#[ cfg( not( target_os = "android" ) ) ]
You can’t perform that action at this time.
0 commit comments