Skip to content

Commit

Permalink
chore: fix new clippy lints from 1.67.0 (tokio-rs#2451)
Browse files Browse the repository at this point in the history
There are new warnings as errors reported by clippy in Rust 1.67.0.

This are causing builds to fail, e.g.:
https://github.com/tokio-rs/tracing/actions/runs/4027112923/jobs/6922513360

In both cases they are reports of lifetimes that can be elided. This
change removes the unnecessary lifetime annotations to make clippy
happy.
  • Loading branch information
hds authored and kaffarell committed May 22, 2024
1 parent 3595507 commit 6c80465
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tracing-opentelemetry/src/layer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ pub(crate) struct WithContext(
impl WithContext {
// This function allows a function to be called in the context of the
// "remembered" subscriber.
pub(crate) fn with_context<'a>(
pub(crate) fn with_context(
&self,
dispatch: &'a tracing::Dispatch,
dispatch: &tracing::Dispatch,
id: &span::Id,
mut f: impl FnMut(&mut OtelData, &dyn PreSampledTracer),
) {
Expand Down

0 comments on commit 6c80465

Please sign in to comment.