Skip to content

Commit ff2919a

Browse files
committed
Remove deadlinks from unchecked_duration_subtraction
1 parent e1dbafd commit ff2919a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

clippy_lints/src/instant_subtraction.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ declare_clippy_lint! {
4040

4141
declare_clippy_lint! {
4242
/// ### What it does
43-
/// Lints subtraction between an [`Instant`] and a [`Duration`].
43+
/// Lints subtraction between an `Instant` and a `Duration`.
4444
///
4545
/// ### Why is this bad?
4646
/// Unchecked subtraction could cause underflow on certain platforms, leading to
@@ -57,9 +57,6 @@ declare_clippy_lint! {
5757
/// # use std::time::{Instant, Duration};
5858
/// let time_passed = Instant::now().checked_sub(Duration::from_secs(5));
5959
/// ```
60-
///
61-
/// [`Duration`]: std::time::Duration
62-
/// [`Instant::now()`]: std::time::Instant::now;
6360
#[clippy::version = "1.67.0"]
6461
pub UNCHECKED_DURATION_SUBTRACTION,
6562
pedantic,

0 commit comments

Comments
 (0)