Skip to content

Commit 4b0e09c

Browse files
committed
log: fix warnings
1 parent 09ada74 commit 4b0e09c

1 file changed

Lines changed: 40 additions & 40 deletions

File tree

src/log.rs

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -2,60 +2,60 @@
22
#[cfg(feature = "log")]
33
mod 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"))]
3434
mod 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
}

0 commit comments

Comments
 (0)