Files
tokio/tokio/tests
Eliza Weisman dee26c92dd chore: fix a bunch of annoying clippy lints (#4558)
## Motivation

Recent Clippy releases have added some new lints that trigger on some
code in Tokio. These aren't a big deal, but seeing them in my editor is
mildly annoying.

## Solution

This branch fixes the following issues flagged by Clippy:

* manual `Option::map` implementation
* use of `.map(...).flatten(...)` that could be replaced with
  `.and_then(...)`
* manual implementation of saturating arithmetic on `Duration`s
* simplify some boolean expressions in assertions (`!res.is_ok()` can be
`res.is_err()`)
* fix redundant field names in initializers
* replace an unnecessary cast to `usize` with an explicitly typed
  integer literal

Signed-off-by: Eliza Weisman <[email protected]>
2022-03-08 12:24:19 -08:00
..
2020-12-19 11:42:24 -08:00
2020-04-02 17:10:44 -04:00
2021-08-24 14:57:23 +02:00
2021-07-30 11:20:16 +02:00
2021-08-03 10:50:40 +02:00
2022-02-02 16:39:16 +01:00
2020-12-19 11:42:24 -08:00
2020-12-19 11:42:24 -08:00
2020-12-19 11:42:24 -08:00
2020-05-30 14:06:03 -07:00
2020-12-19 11:42:24 -08:00