Skip to content

Commit

Permalink
fix(derive): Warnings with metrics macro (#322)
Browse files Browse the repository at this point in the history
  • Loading branch information
clabby authored Jun 26, 2024
1 parent e36633f commit f44f87f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions crates/derive/src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ macro_rules! timer {
(START, $metric:ident, $labels:expr, $timer:ident) => {
#[cfg(feature = "metrics")]
let $timer = $crate::metrics::$metric.with_label_values($labels).start_timer();
#[cfg(not(feature = "metrics"))]
let $timer = ();
};
(DISCARD, $timer:ident) => {
#[cfg(feature = "metrics")]
Expand Down

0 comments on commit f44f87f

Please sign in to comment.