Skip to content

Commit

Permalink
subscriber: fix docs link to Subscribe impl for Box
Browse files Browse the repository at this point in the history
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!
  • Loading branch information
hawkw committed Mar 25, 2022
1 parent afdad8f commit 6a6383a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tracing-subscriber/src/subscribe/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,8 @@
//! ```
//!
//! [prelude]: crate::prelude
//! [box-impl]: #impl-Subscribe<C>-for-Box<dyn Subscribe<C> + Send + Sync + 'static>
//! [option-impl]: crate::subscribe::Subscribe#impl-Subscribe<C>-for-Option<S>
//! [box-impl]: Subscribe#impl-Subscribe%3CC%3E-for-Box%3Cdyn%20Subscribe%3CC%3E%20+%20Send%20+%20Sync%20+%20%27static%3E
//!
//! # Recording Traces
//!
Expand Down Expand Up @@ -537,7 +538,6 @@
//! [`Subscribe::register_callsite`]: Subscribe::register_callsite
//! [`Subscribe::enabled`]: Subscribe::enabled
//! [`Interest::never()`]: tracing_core::collect::Interest::never
//! [option-impl]: crate::subscribe::Subscribe#impl-Subscribe<C>-for-Option<S>
//! [`Filtered`]: crate::filter::Filtered
//! [`filter`]: crate::filter
//! [`Targets`]: crate::filter::Targets
Expand Down

0 comments on commit 6a6383a

Please sign in to comment.