Merge pull request #75 from vorner/warn-unused-observe-when

Use must_use on the ObserveWhen
This commit is contained in:
Francis Lalonde 2019-07-12 09:58:11 -04:00 committed by GitHub
commit 1f656fc62e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -198,6 +198,7 @@ pub trait Observe {
/// common.
type Inner;
/// Provide a source for a metric's values.
#[must_use = "must specify when to observe"]
fn observe<F>(
&self,
metric: impl Deref<Target = InputMetric>,