Skip to content

Commit

Permalink
Warn when MetricBuilder is unused
Browse files Browse the repository at this point in the history
Fixes #63
  • Loading branch information
56quarters committed Mar 14, 2018
1 parent d3f2a5b commit 0154246
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ where
///
/// In this example, two key-value tags and one value tag are added to the
/// metric before it is finally sent to the Statsd server.
#[must_use = "Did you forget to call .send() after adding tags?"]
#[derive(Debug)]
pub struct MetricBuilder<'m, 'c, T>
where
Expand Down

0 comments on commit 0154246

Please sign in to comment.