Skip to content

Commit 4b2903f

Browse files
authored
subscriber: fix broken docs links (#1902)
This branch fixes some broken documentation links and other docs issues in `tracing-subscriber`.
1 parent 31df8cd commit 4b2903f

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

tracing-subscriber/src/filter/env/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ use tracing_core::{
100100
/// [`level`]: tracing_core::Level
101101
/// [`Metadata`]: tracing_core::Metadata
102102
/// [`Targets`]: crate::filter::Targets
103+
/// [`env_logger`]: https://crates.io/crates/env_logger
103104
#[cfg_attr(docsrs, doc(cfg(all(feature = "env-filter", feature = "std"))))]
104105
#[derive(Debug)]
105106
pub struct EnvFilter {

tracing-subscriber/src/fmt/format/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ pub use pretty::*;
153153
/// DEBUG yak_shaving::shaver: some-span{field-on-span=foo}: started shaving yak
154154
/// ```
155155
///
156+
/// [`layer::Context`]: crate::layer::Context
156157
/// [`fmt::Layer`]: super::Layer
157158
/// [`fmt::Subscriber`]: super::Subscriber
158159
/// [`Event`]: tracing::Event

tracing-subscriber/src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@
6363
//! - `local-time`: Enables local time formatting when using the [`time`
6464
//! crate]'s timestamp formatters with the `fmt` subscriber.
6565
//!
66+
//! [`registry`]: mod@registry
67+
//!
6668
//! ### Optional Dependencies
6769
//!
6870
//! - [`tracing-log`]: Enables better formatting for events emitted by `log`
@@ -80,7 +82,7 @@
8082
//! used without requiring the Rust standard library, although some features are
8183
//! disabled. Although most of the APIs provided by `tracing-subscriber`, such
8284
//! as [`fmt`] and [`EnvFilter`], require the standard library, some
83-
//! functionality, such as the [`Subscribe`] trait, can still be used in
85+
//! functionality, such as the [`Layer`] trait, can still be used in
8486
//! `no_std` environments.
8587
//!
8688
//! The dependency on the standard library is controlled by two crate feature
@@ -156,6 +158,7 @@
156158
//! [`env_logger` crate]: https://crates.io/crates/env_logger
157159
//! [`parking_lot`]: https://crates.io/crates/parking_lot
158160
//! [`time` crate]: https://crates.io/crates/time
161+
//! [`libstd`]: https://doc.rust-lang.org/std/index.html
159162
//! [`liballoc`]: https://doc.rust-lang.org/alloc/index.html
160163
#![doc(html_root_url = "https://docs.rs/tracing-subscriber/0.3.7")]
161164
#![doc(

0 commit comments

Comments
 (0)