diff --git a/tracing-subscriber/src/fmt/fmt_layer.rs b/tracing-subscriber/src/fmt/fmt_layer.rs index ac0990b3fd..e557f9f0a3 100644 --- a/tracing-subscriber/src/fmt/fmt_layer.rs +++ b/tracing-subscriber/src/fmt/fmt_layer.rs @@ -70,7 +70,7 @@ pub struct Layer< fmt_event: E, fmt_span: format::FmtSpanConfig, is_ansi: bool, - _inner: PhantomData, + _inner: PhantomData, } impl Layer { diff --git a/tracing-subscriber/src/layer/mod.rs b/tracing-subscriber/src/layer/mod.rs index 13eb7e6774..3cd55c832f 100644 --- a/tracing-subscriber/src/layer/mod.rs +++ b/tracing-subscriber/src/layer/mod.rs @@ -236,10 +236,10 @@ //! } //! //! impl LogConfig { -//! pub fn layer(self) -> Box + Send + Sync + 'static> +//! pub fn layer(self) -> Box + Send + Sync + 'static> //! where -//! C: tracing_core::Subscriber + Send + Sync, -//! for<'a> C: LookupSpan<'a>, +//! S: tracing_core::Subscriber, +//! for<'a> S: LookupSpan<'a>, //! { //! // Shared configuration regardless of where logs are output to. //! let fmt = tracing_subscriber::fmt::layer()