Skip to content

Commit cf4a651

Browse files
authored
style: make clippy happier (#5)
This fixes some lints
1 parent ddc7aab commit cf4a651

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/layer.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,16 @@ where
7878
//
7979
// See https://github.com/tokio-rs/tracing/blob/4dad420ee1d4607bad79270c1520673fa6266a3d/tracing-error/src/layer.rs
8080
pub(crate) struct WithContext(
81+
#[allow(clippy::type_complexity)] // who cares
8182
fn(&tracing::Dispatch, &span::Id, f: &mut dyn FnMut(&mut OtelData, &dyn PreSampledTracer)),
8283
);
8384

8485
impl WithContext {
8586
// This function allows a function to be called in the context of the
8687
// "remembered" subscriber.
87-
pub(crate) fn with_context<'a>(
88+
pub(crate) fn with_context(
8889
&self,
89-
dispatch: &'a tracing::Dispatch,
90+
dispatch: &tracing::Dispatch,
9091
id: &span::Id,
9192
mut f: impl FnMut(&mut OtelData, &dyn PreSampledTracer),
9293
) {

0 commit comments

Comments
 (0)