Skip to content

Commit 62713d1

Browse files
committed
refactor(docs): Use intra-doc links
1 parent 1b0f4dd commit 62713d1

File tree

3 files changed

+5
-18
lines changed

3 files changed

+5
-18
lines changed

src/fmt/humantime.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ impl Formatter {
2525
/// writeln!(buf, "{}: {}: {}", ts, record.level(), record.args())
2626
/// });
2727
/// ```
28-
///
29-
/// [`Timestamp`]: struct.Timestamp.html
3028
pub fn timestamp(&self) -> Timestamp {
3129
Timestamp {
3230
time: SystemTime::now(),
@@ -76,8 +74,7 @@ impl Formatter {
7674
/// The timestamp implements [`Display`] and can be written to a [`Formatter`].
7775
///
7876
/// [RFC3339]: https://www.ietf.org/rfc/rfc3339.txt
79-
/// [`Display`]: https://doc.rust-lang.org/stable/std/fmt/trait.Display.html
80-
/// [`Formatter`]: struct.Formatter.html
77+
/// [`Display`]: std::fmt::Display
8178
pub struct Timestamp {
8279
time: SystemTime,
8380
precision: TimestampPrecision,

src/fmt/mod.rs

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,8 @@
2424
//! });
2525
//! ```
2626
//!
27-
//! [`Formatter`]: struct.Formatter.html
28-
//! [`Style`]: struct.Style.html
29-
//! [`Builder::format`]: ../struct.Builder.html#method.format
30-
//! [`Write`]: https://doc.rust-lang.org/stable/std/io/trait.Write.html
27+
//! [`Builder::format`]: crate::Builder::format
28+
//! [`Write`]: std::io::Write
3129
3230
use std::cell::RefCell;
3331
use std::fmt::Display;
@@ -95,8 +93,8 @@ impl Default for TimestampPrecision {
9593
/// builder.format(|buf, record| writeln!(buf, "{}: {}", record.level(), record.args()));
9694
/// ```
9795
///
98-
/// [`Write`]: https://doc.rust-lang.org/stable/std/io/trait.Write.html
99-
/// [`writeln`]: https://doc.rust-lang.org/stable/std/macro.writeln.html
96+
/// [`Write`]: std::io::Write
97+
/// [`writeln`]: std::writeln
10098
/// [`style`]: #method.style
10199
pub struct Formatter {
102100
buf: Rc<RefCell<Buffer>>,
@@ -240,10 +238,6 @@ type SubtleStyle = StyledValue<&'static str>;
240238
type SubtleStyle = &'static str;
241239

242240
/// A value that can be printed using the given styles.
243-
///
244-
/// It is the result of calling [`Style::value`].
245-
///
246-
/// [`Style::value`]: struct.Style.html#method.value
247241
#[cfg(feature = "color")]
248242
struct StyledValue<T> {
249243
style: style::Style,

src/lib.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -259,10 +259,6 @@
259259
//! [gh-repo-examples]: https://github.com/rust-cli/env_logger/tree/main/examples
260260
//! [level-enum]: https://docs.rs/log/latest/log/enum.Level.html
261261
//! [log-crate-url]: https://docs.rs/log
262-
//! [`Builder`]: struct.Builder.html
263-
//! [`Builder::is_test`]: struct.Builder.html#method.is_test
264-
//! [`Env`]: struct.Env.html
265-
//! [`fmt`]: fmt/index.html
266262
267263
#![doc(
268264
html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",

0 commit comments

Comments
 (0)