Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix cargo docs warnings #1362

Merged
merged 1 commit into from
Apr 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tracing-core/src/dispatch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ impl Dispatch {
/// `T`.
#[inline]
pub fn is<T: Any>(&self) -> bool {
Collect::is::<T>(&*self.collector())
<dyn Collect>::is::<T>(&*self.collector())
}

/// Returns some reference to the [`Collect`] this `Dispatch` forwards to
Expand All @@ -801,7 +801,7 @@ impl Dispatch {
/// [`Collect`]: super::collect::Collect
#[inline]
pub fn downcast_ref<T: Any>(&self) -> Option<&T> {
Collect::downcast_ref(&*self.collector())
<dyn Collect>::downcast_ref(&*self.collector())
}
}

Expand Down
9 changes: 5 additions & 4 deletions tracing-subscriber/src/fmt/format/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -361,14 +361,15 @@ impl<F, T> Format<F, T> {

/// 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`].
///
/// [`timer`]: time::FormatTime
/// [`ChronoUtc`]: time::ChronoUtc
/// [`ChronoLocal`]: time::ChronoLocal
/// [`timer`]: super::time::FormatTime
/// [`time` module]: mod@super::time
/// [`ChronoUtc`]: super::time::ChronoUtc
/// [`ChronoLocal`]: super::time::ChronoLocal
pub fn with_timer<T2>(self, timer: T2) -> Format<F, T2> {
Format {
format: self.format,
Expand Down