Skip to content

Commit 0a1b1e3

Browse files
committed
lints
1 parent f779979 commit 0a1b1e3

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

opentelemetry/benches/logrecord_types.rs

+3-5
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,13 @@ fn criterion_benchmark(c: &mut Criterion) {
1515
fn attributes_creation(c: &mut Criterion) {
1616
c.bench_function("CreateOTelKeyValue", |b| {
1717
b.iter(|| {
18-
let _k1 = black_box(Key::new("attribute1"));
19-
let _v2 = black_box(Value::String("value1".into()));
18+
let _v = black_box(Value::String("value1".into()));
2019
});
2120
});
2221

2322
c.bench_function("CreateOTelKeyAnyValue", |b| {
24-
b.iter(|| {
25-
let _k= black_box(Key::new("attribute1"));
26-
let _v1 = black_box(AnyValue::String("value1".into()));
23+
b.iter(|| {
24+
let _v = black_box(AnyValue::String("value1".into()));
2725
});
2826
});
2927

0 commit comments

Comments
 (0)