File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ declare_clippy_lint! {
4040
4141declare_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,
You can’t perform that action at this time.
0 commit comments