Skip to content

Commit 4cee4bc

Browse files
authored
Fix potential clippy issue of unused variable for start_timer and add_to_trace macros for no print-trace feature. (#45)
1 parent 85f642b commit 4cee4bc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/perf_trace.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,14 +183,16 @@ mod inner {
183183

184184
#[macro_export]
185185
macro_rules! start_timer {
186-
($msg:expr) => {
186+
($msg:expr) => {{
187+
let _ = $msg;
187188
$crate::perf_trace::TimerInfo
188-
};
189+
}};
189190
}
190191
#[macro_export]
191192
macro_rules! add_to_trace {
192193
($title:expr, $msg:expr) => {
193194
let _ = $msg;
195+
let _ = $title;
194196
};
195197
}
196198

0 commit comments

Comments
 (0)