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! {
40
40
41
41
declare_clippy_lint ! {
42
42
/// ### What it does
43
- /// Lints subtraction between an [ `Instant`] and a [ `Duration`] .
43
+ /// Lints subtraction between an `Instant` and a `Duration`.
44
44
///
45
45
/// ### Why is this bad?
46
46
/// Unchecked subtraction could cause underflow on certain platforms, leading to
@@ -57,9 +57,6 @@ declare_clippy_lint! {
57
57
/// # use std::time::{Instant, Duration};
58
58
/// let time_passed = Instant::now().checked_sub(Duration::from_secs(5));
59
59
/// ```
60
- ///
61
- /// [`Duration`]: std::time::Duration
62
- /// [`Instant::now()`]: std::time::Instant::now;
63
60
#[ clippy:: version = "1.67.0" ]
64
61
pub UNCHECKED_DURATION_SUBTRACTION ,
65
62
pedantic,
You can’t perform that action at this time.
0 commit comments