@@ -20,7 +20,7 @@ use crate::{process::Process, utils::notify::NotificationLevel};
20
20
pub fn tracing_subscriber (
21
21
process : & Process ,
22
22
) -> (
23
- impl tracing:: Subscriber ,
23
+ impl tracing:: Subscriber + use < > ,
24
24
reload:: Handle < EnvFilter , Registry > ,
25
25
) {
26
26
#[ cfg( feature = "otel" ) ]
@@ -45,7 +45,7 @@ pub fn tracing_subscriber(
45
45
/// When the `RUSTUP_LOG` environment variable is present, a standard [`tracing_subscriber`]
46
46
/// formatter will be used according to the filtering directives set in its value.
47
47
/// Otherwise, this logger will use [`EventFormatter`] to mimic "classic" Rustup `stderr` output.
48
- fn console_logger < S > ( process : & Process ) -> ( impl Layer < S > , reload:: Handle < EnvFilter , S > )
48
+ fn console_logger < S > ( process : & Process ) -> ( impl Layer < S > + use < S > , reload:: Handle < EnvFilter , S > )
49
49
where
50
50
S : Subscriber + for < ' span > LookupSpan < ' span > ,
51
51
{
@@ -129,7 +129,7 @@ impl NotificationLevel {
129
129
/// A [`tracing::Subscriber`] [`Layer`][`tracing_subscriber::Layer`] that corresponds to Rustup's
130
130
/// optional `opentelemetry` (a.k.a. `otel`) feature.
131
131
#[ cfg( feature = "otel" ) ]
132
- fn telemetry < S > ( process : & Process ) -> impl Layer < S >
132
+ fn telemetry < S > ( process : & Process ) -> impl Layer < S > + use < S >
133
133
where
134
134
S : Subscriber + for < ' span > LookupSpan < ' span > ,
135
135
{
0 commit comments