Remove deadlinks from `unchecked_duration_subtraction`

This commit is contained in:
Lieselotte 2024-01-01 18:47:57 +01:00
parent e1dbafd875
commit ff2919ac5d
No known key found for this signature in database
GPG Key ID: 43A6A32F83A6F9B1
1 changed files with 1 additions and 4 deletions

View File

@ -40,7 +40,7 @@ declare_clippy_lint! {
declare_clippy_lint! {
/// ### What it does
/// Lints subtraction between an [`Instant`] and a [`Duration`].
/// Lints subtraction between an `Instant` and a `Duration`.
///
/// ### Why is this bad?
/// Unchecked subtraction could cause underflow on certain platforms, leading to
@ -57,9 +57,6 @@ declare_clippy_lint! {
/// # use std::time::{Instant, Duration};
/// let time_passed = Instant::now().checked_sub(Duration::from_secs(5));
/// ```
///
/// [`Duration`]: std::time::Duration
/// [`Instant::now()`]: std::time::Instant::now;
#[clippy::version = "1.67.0"]
pub UNCHECKED_DURATION_SUBTRACTION,
pedantic,