Skip to content

Commit 5e66fdf

Browse files
authored
chore: fix format lint (open-telemetry#3039)
1 parent e64c6ee commit 5e66fdf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

benches/log-attributes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ fn create_benchmark(c: &mut Criterion, num_attributes: usize) {
6060
let subscriber = Registry::default().with(ot_layer);
6161

6262
tracing::subscriber::with_default(subscriber, || {
63-
c.bench_function(&format!("otel_{}_attributes", num_attributes), |b| {
63+
c.bench_function(&format!("otel_{num_attributes}_attributes"), |b| {
6464
b.iter(|| {
6565
// Dynamically generate the error! macro call based on the number of attributes
6666
match num_attributes {

src/layer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ impl<LR: LogRecord> tracing::field::Visit for EventVisitor<'_, LR> {
7373
return;
7474
}
7575
if field.name() == "message" {
76-
self.log_record.set_body(format!("{:?}", value).into());
76+
self.log_record.set_body(format!("{value:?}").into());
7777
} else {
7878
self.log_record
7979
.add_attribute(Key::new(field.name()), AnyValue::from(format!("{value:?}")));

0 commit comments

Comments
 (0)