From 3c581270c41685a36ce729e86175a98a8add1289 Mon Sep 17 00:00:00 2001 From: Folyd Date: Wed, 21 Apr 2021 06:26:25 +0800 Subject: [PATCH] chore: fix cargo docs warnings (#1362) This PR simply fixes some cargo docs warnings. --- tracing-core/src/dispatcher.rs | 4 ++-- tracing-subscriber/src/fmt/format/mod.rs | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tracing-core/src/dispatcher.rs b/tracing-core/src/dispatcher.rs index 8781e40fef..9fb7e73b2c 100644 --- a/tracing-core/src/dispatcher.rs +++ b/tracing-core/src/dispatcher.rs @@ -641,14 +641,14 @@ impl Dispatch { /// `T`. #[inline] pub fn is(&self) -> bool { - Subscriber::is::(&*self.subscriber) + ::is::(&*self.subscriber) } /// Returns some reference to the `Subscriber` this `Dispatch` forwards to /// if it is of type `T`, or `None` if it isn't. #[inline] pub fn downcast_ref(&self) -> Option<&T> { - Subscriber::downcast_ref(&*self.subscriber) + ::downcast_ref(&*self.subscriber) } } diff --git a/tracing-subscriber/src/fmt/format/mod.rs b/tracing-subscriber/src/fmt/format/mod.rs index f0a80da78f..67acc9377c 100644 --- a/tracing-subscriber/src/fmt/format/mod.rs +++ b/tracing-subscriber/src/fmt/format/mod.rs @@ -361,15 +361,15 @@ impl Format { /// Use the given [`timer`] for log message timestamps. /// - /// See [`time`] for the provided timer implementations. + /// See [`time` module] for the provided timer implementations. /// /// Note that using the `chrono` feature flag enables the /// additional time formatters [`ChronoUtc`] and [`ChronoLocal`]. /// - /// [`time`]: ./time/index.html - /// [`timer`]: ./time/trait.FormatTime.html - /// [`ChronoUtc`]: ./time/struct.ChronoUtc.html - /// [`ChronoLocal`]: ./time/struct.ChronoLocal.html + /// [`timer`]: super::time::FormatTime + /// [`time` module]: mod@super::time + /// [`ChronoUtc`]: super::time::ChronoUtc + /// [`ChronoLocal`]: super::time::ChronoLocal pub fn with_timer(self, timer: T2) -> Format { Format { format: self.format,