Skip to content

Commit e7662e3

Browse files
committed
Update benches
1 parent a970c00 commit e7662e3

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

benches/encoding/text.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,21 @@ use std::fmt::Write;
1010

1111
pub fn text(c: &mut Criterion) {
1212
c.bench_function("encode", |b| {
13-
#[derive(Clone, Hash, PartialEq, Eq, EncodeLabelSet, Debug)]
13+
#[derive(Clone, Ord, PartialOrd, PartialEq, Eq, EncodeLabelSet, Debug)]
1414
struct Labels {
1515
method: Method,
1616
status: Status,
1717
some_number: u64,
1818
}
1919

20-
#[derive(Clone, Hash, PartialEq, Eq, EncodeLabelValue, Debug)]
20+
#[derive(Clone, Ord, PartialOrd, PartialEq, Eq, EncodeLabelValue, Debug)]
2121
enum Method {
2222
Get,
2323
#[allow(dead_code)]
2424
Put,
2525
}
2626

27-
#[derive(Clone, Hash, PartialEq, Eq, Debug)]
27+
#[derive(Clone, Ord, PartialOrd, PartialEq, Eq, Debug)]
2828
enum Status {
2929
Two,
3030
#[allow(dead_code)]

benches/family.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,20 +43,20 @@ pub fn family(c: &mut Criterion) {
4343
});
4444

4545
c.bench_function("counter family with custom type label set", |b| {
46-
#[derive(Clone, Hash, PartialEq, Eq)]
46+
#[derive(Clone, Ord, PartialOrd, PartialEq, Eq)]
4747
struct Labels {
4848
method: Method,
4949
status: Status,
5050
}
5151

52-
#[derive(Clone, Hash, PartialEq, Eq)]
52+
#[derive(Clone, Ord, PartialOrd, PartialEq, Eq)]
5353
enum Method {
5454
Get,
5555
#[allow(dead_code)]
5656
Put,
5757
}
5858

59-
#[derive(Clone, Hash, PartialEq, Eq)]
59+
#[derive(Clone, Ord, PartialOrd, PartialEq, Eq)]
6060
enum Status {
6161
Two,
6262
#[allow(dead_code)]

0 commit comments

Comments
 (0)