Skip to content

Commit

Permalink
Fix potential clippy issue of unused variable for start_timer and `…
Browse files Browse the repository at this point in the history
…add_to_trace` macros for no `print-trace` feature. (#45)
  • Loading branch information
silathdiir authored Apr 10, 2023
1 parent 85f642b commit 4cee4bc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/perf_trace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,14 +183,16 @@ mod inner {

#[macro_export]
macro_rules! start_timer {
($msg:expr) => {
($msg:expr) => {{
let _ = $msg;
$crate::perf_trace::TimerInfo
};
}};
}
#[macro_export]
macro_rules! add_to_trace {
($title:expr, $msg:expr) => {
let _ = $msg;
let _ = $title;
};
}

Expand Down

0 comments on commit 4cee4bc

Please sign in to comment.