Skip to content

Commit 8e5bdf6

Browse files
committed
tracing: Use imported instead of fully qualified path
Fixed an unused import warning under no-default-features.
1 parent fad6de7 commit 8e5bdf6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tracing/src/instrument.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ pub trait WithSubscriber: Sized {
171171
/// ```
172172
///
173173
/// [`Subscriber`]: super::Subscriber
174-
/// [default]: crate::dispatcher#setting-the-default-subscriber
174+
/// [default]: dispatcher#setting-the-default-subscriber
175175
/// [`Future`]: std::future::Future
176176
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
177177
where
@@ -222,13 +222,13 @@ pub trait WithSubscriber: Sized {
222222
/// # }
223223
/// ```
224224
/// [`Subscriber`]: super::Subscriber
225-
/// [default]: crate::dispatcher#setting-the-default-subscriber
225+
/// [default]: dispatcher#setting-the-default-subscriber
226226
/// [`Future`]: std::future::Future
227227
#[inline]
228228
fn with_current_subscriber(self) -> WithDispatch<Self> {
229229
WithDispatch {
230230
inner: self,
231-
dispatcher: crate::dispatcher::get_default(|default| default.clone()),
231+
dispatcher: dispatcher::get_default(|default| default.clone()),
232232
}
233233
}
234234
}

0 commit comments

Comments
 (0)