Skip to content

Commit 6a6383a

Browse files
authored
subscriber: fix docs link to Subscribe impl for Box
RustDoc didn't actually parse the link to the `Subscribe` impl for `Box<dyn Subscribe<C> + Send + Sync + 'static>` because the link URL contained unescaped spaces. Therefore, the link reference was treated as normal text rather than as a link reference. This commit replaces the link ref with the escaped version, which works correctly. My bad!
1 parent afdad8f commit 6a6383a

File tree

1 file changed

+2
-2
lines changed
  • tracing-subscriber/src/subscribe

1 file changed

+2
-2
lines changed

tracing-subscriber/src/subscribe/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,8 @@
267267
//! ```
268268
//!
269269
//! [prelude]: crate::prelude
270-
//! [box-impl]: #impl-Subscribe<C>-for-Box<dyn Subscribe<C> + Send + Sync + 'static>
270+
//! [option-impl]: crate::subscribe::Subscribe#impl-Subscribe<C>-for-Option<S>
271+
//! [box-impl]: Subscribe#impl-Subscribe%3CC%3E-for-Box%3Cdyn%20Subscribe%3CC%3E%20+%20Send%20+%20Sync%20+%20%27static%3E
271272
//!
272273
//! # Recording Traces
273274
//!
@@ -537,7 +538,6 @@
537538
//! [`Subscribe::register_callsite`]: Subscribe::register_callsite
538539
//! [`Subscribe::enabled`]: Subscribe::enabled
539540
//! [`Interest::never()`]: tracing_core::collect::Interest::never
540-
//! [option-impl]: crate::subscribe::Subscribe#impl-Subscribe<C>-for-Option<S>
541541
//! [`Filtered`]: crate::filter::Filtered
542542
//! [`filter`]: crate::filter
543543
//! [`Targets`]: crate::filter::Targets

0 commit comments

Comments
 (0)