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
This commit is contained in:
commit
bc962c246a
@ -40,7 +40,7 @@ declare_clippy_lint! {
|
|||||||
|
|
||||||
declare_clippy_lint! {
|
declare_clippy_lint! {
|
||||||
/// ### What it does
|
/// ### What it does
|
||||||
/// Lints subtraction between an [`Instant`] and a [`Duration`].
|
/// Lints subtraction between an `Instant` and a `Duration`.
|
||||||
///
|
///
|
||||||
/// ### Why is this bad?
|
/// ### Why is this bad?
|
||||||
/// Unchecked subtraction could cause underflow on certain platforms, leading to
|
/// Unchecked subtraction could cause underflow on certain platforms, leading to
|
||||||
@ -57,9 +57,6 @@ declare_clippy_lint! {
|
|||||||
/// # use std::time::{Instant, Duration};
|
/// # use std::time::{Instant, Duration};
|
||||||
/// let time_passed = Instant::now().checked_sub(Duration::from_secs(5));
|
/// 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"]
|
#[clippy::version = "1.67.0"]
|
||||||
pub UNCHECKED_DURATION_SUBTRACTION,
|
pub UNCHECKED_DURATION_SUBTRACTION,
|
||||||
pedantic,
|
pedantic,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user