about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLieselotte <52315535+she3py@users.noreply.github.com>2024-01-01 18:47:57 +0100
committerLieselotte <52315535+she3py@users.noreply.github.com>2024-01-01 18:50:58 +0100
commitff2919ac5d1f90c146df714b9fd0f716713e96cb (patch)
tree617df4975a4c5b1fb439333a6d39385f5fc9d551
parente1dbafd875f898a14514b39c928e735fb5a7e6b4 (diff)
downloadrust-ff2919ac5d1f90c146df714b9fd0f716713e96cb.tar.gz
rust-ff2919ac5d1f90c146df714b9fd0f716713e96cb.zip
Remove deadlinks from `unchecked_duration_subtraction`
-rw-r--r--clippy_lints/src/instant_subtraction.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/clippy_lints/src/instant_subtraction.rs b/clippy_lints/src/instant_subtraction.rs
index 655f4b82aa4..17b6256f982 100644
--- a/clippy_lints/src/instant_subtraction.rs
+++ b/clippy_lints/src/instant_subtraction.rs
@@ -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,