Skip to content

Commit

Permalink
subscriber: fix docs link to Layer impl for Box
Browse files Browse the repository at this point in the history
RustDoc didn't actually parse the link to the `Layer` impl for
`Box<dyn Layer<S> + Send + Sync>` 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 29, 2022
1 parent 2decb45 commit e856d8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tracing-subscriber/src/layer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,8 @@
//! ```
//!
//! [prelude]: crate::prelude
//! [box-impl]: #impl-Layer<S>-for-Box<dyn Layer<S> + Send + Sync>
//! [option-impl]: Layer#impl-Layer<S>-for-Option<L>
//! [box-impl]: Layer#impl-Layer%3CS%3E-for-Box%3Cdyn%20Layer%3CS%3E%20+%20Send%20+%20Sync%3E
//! [prelude]: crate::prelude
//!
//! # Recording Traces
Expand Down Expand Up @@ -533,7 +534,6 @@
//! [`Layer::register_callsite`]: Layer::register_callsite
//! [`Layer::enabled`]: Layer::enabled
//! [`Interest::never()`]: https://docs.rs/tracing-core/latest/tracing_core/subscriber/struct.Interest.html#method.never
//! [option-impl]: crate::layer::Layer#impl-Layer<S>-for-Option<L>
//! [`Filtered`]: crate::filter::Filtered
//! [`filter`]: crate::filter
//! [`Targets`]: crate::filter::Targets
Expand Down

0 comments on commit e856d8f

Please sign in to comment.