mirror of
https://github.com/tokio-rs/tracing.git
synced 2025-09-28 21:42:15 +00:00
chore: fix new clippy lints from 1.67.0 (#2451)
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.
This commit is contained in:
parent
7cceb79b11
commit
2ea8f8cc50
@ -103,9 +103,9 @@ where
|
||||
}
|
||||
|
||||
impl WithContext {
|
||||
pub(crate) fn with_context<'a>(
|
||||
pub(crate) fn with_context(
|
||||
&self,
|
||||
dispatch: &'a Dispatch,
|
||||
dispatch: &Dispatch,
|
||||
id: &span::Id,
|
||||
mut f: impl FnMut(&'static Metadata<'static>, &str) -> bool,
|
||||
) {
|
||||
|
@ -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),
|
||||
) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user