mirror of https://github.com/fralalonde/dipstick
Merge pull request #75 from vorner/warn-unused-observe-when
Use must_use on the ObserveWhen
This commit is contained in:
commit
1f656fc62e
|
@ -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>,
|
||||
|
|
Loading…
Reference in New Issue