File tree 2 files changed +3
-3
lines changed 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -273,7 +273,7 @@ impl Drop for DefaultLogger {
273
273
/// It is not recommended to call this function directly, rather it should be
274
274
/// invoked through the logging family of macros.
275
275
#[ doc( hidden) ]
276
- pub fn log ( level : u32 , loc : & ' static LogLocation , args : & fmt:: Arguments ) {
276
+ pub fn log ( level : u32 , loc : & ' static LogLocation , args : fmt:: Arguments ) {
277
277
// Test the literal string from args against the current filter, if there
278
278
// is one.
279
279
match unsafe { FILTER . as_ref ( ) } {
@@ -326,7 +326,7 @@ pub struct LogRecord<'a> {
326
326
pub level : LogLevel ,
327
327
328
328
/// The arguments from the log line.
329
- pub args : & ' a fmt:: Arguments < ' a > ,
329
+ pub args : fmt:: Arguments < ' a > ,
330
330
331
331
/// The file of where the LogRecord originated.
332
332
pub file : & ' a str ,
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ macro_rules! log {
60
60
} ;
61
61
let lvl = $lvl;
62
62
if log_enabled!( lvl) {
63
- format_args! ( |args| { :: log:: log( lvl, & LOC , args ) } , $( $arg) +)
63
+ :: log:: log( lvl, & LOC , format_args! ( $( $arg) +) ) ;
64
64
}
65
65
} )
66
66
}
You can’t perform that action at this time.
0 commit comments