2 Lints subtraction between `Instant::now()` and another `Instant`.
5 It is easy to accidentally write `prev_instant - Instant::now()`, which will always be 0ns
6 as `Instant` subtraction saturates.
8 `prev_instant.elapsed()` also more clearly signals intention.
12 use std::time::Instant;
13 let prev_instant = Instant::now();
14 let duration = Instant::now() - prev_instant;
18 use std::time::Instant;
19 let prev_instant = Instant::now();
20 let duration = prev_instant.elapsed();