diff --git a/libs/telemetry/src/exporter.rs b/libs/telemetry/src/exporter.rs index 1c5def53401..be1c919cddf 100644 --- a/libs/telemetry/src/exporter.rs +++ b/libs/telemetry/src/exporter.rs @@ -303,8 +303,8 @@ mod tests { id: tracing::span::Id::from_u64(1).into(), parent_id: None, name: "test_span".into(), - start_time: SystemTime::UNIX_EPOCH.into(), - duration: Duration::from_secs(1).into(), + start_time: SystemTime::UNIX_EPOCH, + duration: Duration::from_secs(1), kind: SpanKind::Internal, attributes: HashMap::new(), links: Vec::new(), @@ -314,7 +314,7 @@ mod tests { span_id: span.id, name: "test_event", level: LogLevel::Info, - timestamp: SystemTime::UNIX_EPOCH.into(), + timestamp: SystemTime::UNIX_EPOCH, attributes: HashMap::new(), }; @@ -357,8 +357,8 @@ mod tests { id: tracing::span::Id::from_u64(1).into(), parent_id: None, name: "test_span".into(), - start_time: SystemTime::UNIX_EPOCH.into(), - duration: Duration::from_secs(1).into(), + start_time: SystemTime::UNIX_EPOCH, + duration: Duration::from_secs(1), kind: SpanKind::Internal, attributes: HashMap::new(), links: Vec::new(), @@ -368,7 +368,7 @@ mod tests { span_id: span.id, name: "test_event", level: LogLevel::Info, - timestamp: SystemTime::UNIX_EPOCH.into(), + timestamp: SystemTime::UNIX_EPOCH, attributes: HashMap::new(), }; diff --git a/libs/telemetry/src/layer.rs b/libs/telemetry/src/layer.rs index 002a38ca0db..b0d45d206c7 100644 --- a/libs/telemetry/src/layer.rs +++ b/libs/telemetry/src/layer.rs @@ -162,7 +162,7 @@ impl<'a> SpanAttributeVisitor<'a> { } } -impl<'a> field::Visit for SpanAttributeVisitor<'a> { +impl field::Visit for SpanAttributeVisitor<'_> { fn record_f64(&mut self, field: &field::Field, value: f64) { self.span_builder.insert_attribute(field.name(), value.into()) } @@ -209,7 +209,7 @@ impl<'a> EventAttributeVisitor<'a> { } } -impl<'a> field::Visit for EventAttributeVisitor<'a> { +impl field::Visit for EventAttributeVisitor<'_> { fn record_f64(&mut self, field: &field::Field, value: f64) { self.event_builder.insert_attribute(field.name(), value.into()) }