Skip to content

Commit 11b603c

Browse files
committed
Resolve rustdoc::redundant_explicit_links lint
warning: redundant explicit link target --> src/lib.rs:59:20 | 59 | //! [`from_slice`][from_slice] for parsing from a byte slice &[u8] and | ------------ ^^^^^^^^^^ explicit target is redundant | | | because label contains path that resolves to same destination | note: referenced explicit link target defined here --> src/lib.rs:295:19 | 295 | //! [from_slice]: crate::de::from_slice | ^^^^^^^^^^^^^^^^^^^^^ = note: when a link's destination is not specified, the label is used to resolve intra-doc links = note: `#[warn(rustdoc::redundant_explicit_links)]` on by default help: remove explicit link target | 59 | //! [`from_slice`] for parsing from a byte slice &[u8] and | ~~~~~~~~~~~~~~ warning: redundant explicit link target --> src/lib.rs:60:21 | 60 | //! [`from_reader`][from_reader] for parsing from any `io::Read` like a File or | ------------- ^^^^^^^^^^^ explicit target is redundant | | | because label contains path that resolves to same destination | note: referenced explicit link target defined here --> src/lib.rs:296:20 | 296 | //! [from_reader]: crate::de::from_reader | ^^^^^^^^^^^^^^^^^^^^^^ = note: when a link's destination is not specified, the label is used to resolve intra-doc links help: remove explicit link target | 60 | //! [`from_reader`] for parsing from any `io::Read` like a File or | ~~~~~~~~~~~~~~~
1 parent 95c5d6c commit 11b603c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/lib.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,9 @@
5555
//! ```
5656
//!
5757
//! A string of JSON data can be parsed into a `serde_json::Value` by the
58-
//! [`serde_json::from_str`][from_str] function. There is also
59-
//! [`from_slice`][from_slice] for parsing from a byte slice &[u8] and
60-
//! [`from_reader`][from_reader] for parsing from any `io::Read` like a File or
61-
//! a TCP stream.
58+
//! [`serde_json::from_str`][from_str] function. There is also [`from_slice`]
59+
//! for parsing from a byte slice &[u8] and [`from_reader`] for parsing from any
60+
//! `io::Read` like a File or a TCP stream.
6261
//!
6362
//! ```
6463
//! use serde_json::{Result, Value};

0 commit comments

Comments
 (0)