fixes https://github.com/rust-lang/rust-clippy/issues/13734 This PR renames `unchecked_duration_subtraction` lint to `unchecked_time_subtraction` and extends it to include `Duration - Duration` operations. Previously, it was only `Instant - Duration`. `Duration - Duration` is a common operation which may panic in the same way. Note: This is my first clippy PR, feedback is appreciated. changelog: [`unchecked_time_subtraction`]: renamed from `unchecked_duration_subtraction`, extend lint to include subtraction of a `Duration` with a `Duration` |
||
|---|---|---|
| .. | ||
| src | ||
| book.toml | ||
| README.md | ||