From 6a6383a95d716d557f49b9cc1951e7bb3859b955 Mon Sep 17 00:00:00 2001 From: Eliza Weisman Date: Fri, 25 Mar 2022 12:00:34 -0700 Subject: [PATCH] subscriber: fix docs link to `Subscribe` impl for `Box` RustDoc didn't actually parse the link to the `Subscribe` impl for `Box + 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! --- tracing-subscriber/src/subscribe/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tracing-subscriber/src/subscribe/mod.rs b/tracing-subscriber/src/subscribe/mod.rs index 040ed52058..212648560c 100644 --- a/tracing-subscriber/src/subscribe/mod.rs +++ b/tracing-subscriber/src/subscribe/mod.rs @@ -267,7 +267,8 @@ //! ``` //! //! [prelude]: crate::prelude -//! [box-impl]: #impl-Subscribe-for-Box + Send + Sync + 'static> +//! [option-impl]: crate::subscribe::Subscribe#impl-Subscribe-for-Option +//! [box-impl]: Subscribe#impl-Subscribe%3CC%3E-for-Box%3Cdyn%20Subscribe%3CC%3E%20+%20Send%20+%20Sync%20+%20%27static%3E //! //! # Recording Traces //! @@ -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-for-Option //! [`Filtered`]: crate::filter::Filtered //! [`filter`]: crate::filter //! [`Targets`]: crate::filter::Targets