Skip to content

Commit 3774e0a

Browse files
committed
Apply suggestions from clippy 1.83
1 parent e75c432 commit 3774e0a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/layer.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ struct SpanEventVisitor<'a, 'b> {
160160
sem_conv_config: SemConvConfig,
161161
}
162162

163-
impl<'a, 'b> field::Visit for SpanEventVisitor<'a, 'b> {
163+
impl field::Visit for SpanEventVisitor<'_, '_> {
164164
/// Record events on the underlying OpenTelemetry [`Span`] from `bool` values.
165165
///
166166
/// [`Span`]: opentelemetry::trace::Span
@@ -403,7 +403,7 @@ struct SpanAttributeVisitor<'a> {
403403
sem_conv_config: SemConvConfig,
404404
}
405405

406-
impl<'a> SpanAttributeVisitor<'a> {
406+
impl SpanAttributeVisitor<'_> {
407407
fn record(&mut self, attribute: KeyValue) {
408408
self.span_builder_updates
409409
.attributes
@@ -412,7 +412,7 @@ impl<'a> SpanAttributeVisitor<'a> {
412412
}
413413
}
414414

415-
impl<'a> field::Visit for SpanAttributeVisitor<'a> {
415+
impl field::Visit for SpanAttributeVisitor<'_> {
416416
/// Set attributes on the underlying OpenTelemetry [`Span`] from `bool` values.
417417
///
418418
/// [`Span`]: opentelemetry::trace::Span

src/metrics.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ pub(crate) struct MetricVisitor<'a> {
178178
visited_metrics: &'a mut SmallVec<[(&'static str, InstrumentType); 2]>,
179179
}
180180

181-
impl<'a> Visit for MetricVisitor<'a> {
181+
impl Visit for MetricVisitor<'_> {
182182
fn record_debug(&mut self, field: &Field, value: &dyn fmt::Debug) {
183183
self.attributes
184184
.push(KeyValue::new(field.name(), format!("{value:?}")));

0 commit comments

Comments
 (0)