File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22#[ cfg( feature = "log" ) ]
33mod log {
44 macro_rules! trace {
5- ( $( $t: tt) +) => {
6- :: log:: trace!( $( $t) +)
7- } ;
8- }
5+ ( $( $t: tt) +) => {
6+ :: log:: trace!( $( $t) +)
7+ } ;
8+ }
99 macro_rules! debug {
10- ( $( $t: tt) +) => {
11- :: log:: debug!( $( $t) +)
12- } ;
13- }
10+ ( $( $t: tt) +) => {
11+ :: log:: debug!( $( $t) +)
12+ } ;
13+ }
1414 #[ expect( unused_macros) ] // currently unused
1515 macro_rules! info {
16- ( $( $t: tt) +) => {
17- :: log:: info!( $( $t) +)
18- } ;
19- }
16+ ( $( $t: tt) +) => {
17+ :: log:: info!( $( $t) +)
18+ } ;
19+ }
2020 macro_rules! warn {
21- ( $( $t: tt) +) => {
22- :: log:: warn!( $( $t) +)
23- } ;
24- }
21+ ( $( $t: tt) +) => {
22+ :: log:: warn!( $( $t) +)
23+ } ;
24+ }
2525 macro_rules! error {
26- ( $( $t: tt) +) => {
27- :: log:: error!( $( $t) +)
28- } ;
29- }
26+ ( $( $t: tt) +) => {
27+ :: log:: error!( $( $t) +)
28+ } ;
29+ }
3030}
3131
3232#[ macro_use]
3333#[ cfg( not( feature = "log" ) ) ]
3434mod log {
3535 macro_rules! trace {
36- ( $( $t: tt) +) => {
37- drop ( :: core:: format_args!( $( $t) +) )
38- } ;
39- }
36+ ( $( $t: tt) +) => { {
37+ :: core:: format_args!( $( $t) +) ;
38+ } } ;
39+ }
4040 macro_rules! debug {
41- ( $( $t: tt) +) => {
42- drop ( :: core:: format_args!( $( $t) +) )
43- } ;
44- }
41+ ( $( $t: tt) +) => { {
42+ :: core:: format_args!( $( $t) +) ;
43+ } } ;
44+ }
4545 #[ expect( unused_macros) ] // currently unused
4646 macro_rules! info {
47- ( $( $t: tt) +) => {
48- drop ( :: core:: format_args!( $( $t) +) )
49- } ;
50- }
47+ ( $( $t: tt) +) => { {
48+ :: core:: format_args!( $( $t) +) ;
49+ } } ;
50+ }
5151 macro_rules! warn {
52- ( $( $t: tt) +) => {
53- drop ( :: core:: format_args!( $( $t) +) )
54- } ;
55- }
52+ ( $( $t: tt) +) => { {
53+ :: core:: format_args!( $( $t) +) ;
54+ } } ;
55+ }
5656 macro_rules! error {
57- ( $( $t: tt) +) => {
58- drop ( :: core:: format_args!( $( $t) +) )
59- } ;
60- }
57+ ( $( $t: tt) +) => { {
58+ :: core:: format_args!( $( $t) +) ;
59+ } } ;
60+ }
6161}
You can’t perform that action at this time.
0 commit comments