Skip to content

Commit a970c00

Browse files
lstrojnyspoutn1k
authored andcommitted
Require Ord consistently
Signed-off-by: Lars Strojny <[email protected]>
1 parent ea41408 commit a970c00

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/metrics/family.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ impl<M, F: Fn() -> M> MetricConstructor<M> for F {
167167
}
168168
}
169169

170-
impl<S: Clone + Eq, M: Default> Default for Family<S, M> {
170+
impl<S: Clone + Eq + Ord, M: Default> Default for Family<S, M> {
171171
fn default() -> Self {
172172
Self {
173173
metrics: Arc::new(RwLock::new(Default::default())),
@@ -176,7 +176,7 @@ impl<S: Clone + Eq, M: Default> Default for Family<S, M> {
176176
}
177177
}
178178

179-
impl<S: Clone + Eq, M, C> Family<S, M, C> {
179+
impl<S: Clone + Eq + Ord, M, C> Family<S, M, C> {
180180
/// Create a metric family using a custom constructor to construct new
181181
/// metrics.
182182
///

0 commit comments

Comments
 (0)