diff options
| author | bors <bors@rust-lang.org> | 2024-01-03 20:04:56 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-01-03 20:04:56 +0000 |
| commit | bc962c246a8f3efe4a1217b36c64a03652493327 (patch) | |
| tree | 99ecf673707730ab897c8e70b3851d85dda283a4 | |
| parent | 0153ca95ae588f0423f919e199370b6ff02b02c1 (diff) | |
| parent | ff2919ac5d1f90c146df714b9fd0f716713e96cb (diff) | |
| download | rust-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.rs | 5 |
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, |
