1 error: manual implementation of `Instant::elapsed`
2 --> $DIR/manual_instant_elapsed.rs:18:20
4 LL | let duration = Instant::now() - prev_instant;
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `prev_instant.elapsed()`
7 = note: `-D clippy::manual-instant-elapsed` implied by `-D warnings`
9 error: manual implementation of `Instant::elapsed`
10 --> $DIR/manual_instant_elapsed.rs:27:5
12 LL | Instant::now() - *ref_to_instant; // to ensure parens are added correctly
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(*ref_to_instant).elapsed()`
15 error: aborting due to 2 previous errors