Skip to content

Commit bc962c2

Browse files
committed
Auto merge of #12071 - ShE3py:deadlinks, r=blyxyas
Remove deadlinks from `unchecked_duration_subtraction` See <https://rust-lang.github.io/rust-clippy/master/index.html#unchecked_duration_subtraction> changelog: [`unchecked_duration_subtraction`]: remove deadlinks
2 parents 0153ca9 + ff2919a commit bc962c2

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)