Skip to content

Commit 0bdcb40

Browse files
committed
Simplify tests
1 parent 0f6de5a commit 0bdcb40

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

stress/src/metrics_counter.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use rand::{
1616
rngs::{self},
1717
Rng, SeedableRng,
1818
};
19-
use std::{borrow::Cow, cell::RefCell};
19+
use std::cell::RefCell;
2020

2121
mod throughput;
2222

@@ -29,7 +29,7 @@ lazy_static! {
2929
"value10"
3030
];
3131
static ref COUNTER: Counter<u64> = PROVIDER
32-
.meter(<&str as Into<Cow<'static, str>>>::into("test"))
32+
.meter("test")
3333
.u64_counter("hello")
3434
.init();
3535
}

stress/src/metrics_histogram.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use rand::{
1616
rngs::{self},
1717
Rng, SeedableRng,
1818
};
19-
use std::{borrow::Cow, cell::RefCell};
19+
use std::cell::RefCell;
2020

2121
mod throughput;
2222

@@ -29,7 +29,7 @@ lazy_static! {
2929
"value10"
3030
];
3131
static ref HISTOGRAM: Histogram<u64> = PROVIDER
32-
.meter(<&str as Into<Cow<'static, str>>>::into("test"))
32+
.meter("test")
3333
.u64_histogram("hello")
3434
.init();
3535
}

stress/src/metrics_overflow.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use rand::{
1616
rngs::{self},
1717
Rng, SeedableRng,
1818
};
19-
use std::{borrow::Cow, cell::RefCell};
19+
use std::cell::RefCell;
2020

2121
mod throughput;
2222

@@ -25,7 +25,7 @@ lazy_static! {
2525
.with_reader(ManualReader::builder().build())
2626
.build();
2727
static ref COUNTER: Counter<u64> = PROVIDER
28-
.meter(<&str as Into<Cow<'static, str>>>::into("test"))
28+
.meter("test")
2929
.u64_counter("hello")
3030
.init();
3131
}

0 commit comments

Comments
 (0)