Skip to content

Commit

Permalink
Merge branch 'master' into enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkw authored Jan 11, 2022
2 parents 289bfed + 329db74 commit 04b7fcc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions tracing-subscriber/src/fmt/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ pub struct CollectorBuilder<
/// ```
///
/// [formatting collector]: Collector
/// [`CollectorBuilder::default()`]: CollectorBuilder::default()
/// [`CollectorBuilder::default()`]: struct.CollectorBuilder.html#method.default
/// [`init`]: CollectorBuilder::init()
/// [`try_init`]: CollectorBuilder::try_init()
/// [`finish`]: CollectorBuilder::finish()
Expand All @@ -453,10 +453,11 @@ pub fn fmt() -> CollectorBuilder {
/// Returns a new [formatting subscriber] that can be [composed] with other subscribers to
/// construct a collector.
///
/// This is a shorthand for the equivalent [`Subscriber::default`] function.
/// This is a shorthand for the equivalent [`Subscriber::default()`] function.
///
/// [formatting subscriber]: Subscriber
/// [composed]: super::subscribe
/// [`Subscriber::default()`]: struct.Subscriber.html#method.default
#[cfg_attr(docsrs, doc(cfg(all(feature = "fmt", feature = "std"))))]
pub fn subscriber<C>() -> Subscriber<C> {
Subscriber::default()
Expand Down
2 changes: 1 addition & 1 deletion tracing-subscriber/src/subscribe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1055,7 +1055,7 @@ where
///
/// [register]: tracing_core::collect::Collect::register_callsite()
/// [`enabled`]: tracing_core::collect::Collect::enabled()
/// [`Context::enabled`]: Layered::enabled()
/// [`Context::enabled`]: <Layered as Subscribe>::enabled()
#[inline]
pub fn event(&self, event: &Event<'_>) {
if let Some(collector) = self.collector {
Expand Down

0 comments on commit 04b7fcc

Please sign in to comment.