about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-01-03 20:04:56 +0000
committerbors <bors@rust-lang.org>2024-01-03 20:04:56 +0000
commitbc962c246a8f3efe4a1217b36c64a03652493327 (patch)
tree99ecf673707730ab897c8e70b3851d85dda283a4
parent0153ca95ae588f0423f919e199370b6ff02b02c1 (diff)
parentff2919ac5d1f90c146df714b9fd0f716713e96cb (diff)
downloadrust-bc962c246a8f3efe4a1217b36c64a03652493327.tar.gz
rust-bc962c246a8f3efe4a1217b36c64a03652493327.zip
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
-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,