File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 11#![ allow( unused) ]
22
3+ #[ clippy:: format_args]
34macro_rules! log {
45 ( target: $target: expr, $lvl: expr, $( $arg: tt) +) => { {
56 let _ = $target;
@@ -10,22 +11,27 @@ macro_rules! log {
1011 let _ = format_args!( $( $arg) +) ;
1112 } } ;
1213}
14+ #[ clippy:: format_args]
1315macro_rules! error {
1416 ( target: $target: expr, $( $arg: tt) +) => { log!( target: $target, "" , $( $arg) +) } ;
1517 ( $( $arg: tt) +) => { log!( "" , $( $arg) +) } ;
1618}
19+ #[ clippy:: format_args]
1720macro_rules! warn {
1821 ( target: $target: expr, $( $arg: tt) * ) => { log!( target: $target, "" , $( $arg) * ) } ;
1922 ( $( $arg: tt) * ) => { log!( "" , $( $arg) * ) } ;
2023}
24+ #[ clippy:: format_args]
2125macro_rules! info {
2226 ( target: $target: expr, $( $arg: tt) +) => { log!( target: $target, "" , $( $arg) +) } ;
2327 ( $( $arg: tt) +) => { log!( "" , $( $arg) +) } ;
2428}
29+ #[ clippy:: format_args]
2530macro_rules! debug {
2631 ( target: $target: expr, $( $arg: tt) +) => { log!( target: $target, "" , $( $arg) +) } ;
2732 ( $( $arg: tt) +) => { log!( "" , $( $arg) +) } ;
2833}
34+ #[ clippy:: format_args]
2935macro_rules! trace {
3036 ( target: $target: expr, $( $arg: tt) +) => { log!( target: $target, "" , $( $arg) +) } ;
3137 ( $( $arg: tt) +) => { log!( "" , $( $arg) +) } ;
You can’t perform that action at this time.
0 commit comments