We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f89ab0 commit 912dc91Copy full SHA for 912dc91
clippy_lints/src/instant_subtraction.rs
@@ -41,7 +41,7 @@ declare_clippy_lint! {
41
42
declare_clippy_lint! {
43
/// ### What it does
44
- /// Finds patterns of unchecked subtraction of [`Duration`] from [`Instant::now()`].
+ /// Lints subtraction between an [`Instant`] and a [`Duration`].
45
///
46
/// ### Why is this bad?
47
/// Unchecked subtraction could cause underflow on certain platforms, leading to
0 commit comments