|
1 | | -error: Calling `subsec_millis()` is more concise than this calculation |
| 1 | +error: calling `subsec_millis()` is more concise than this calculation |
2 | 2 | --> $DIR/duration_subsec.rs:10:24 |
3 | 3 | | |
4 | 4 | LL | let bad_millis_1 = dur.subsec_micros() / 1_000; |
5 | 5 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `dur.subsec_millis()` |
6 | 6 | | |
7 | 7 | = note: `-D clippy::duration-subsec` implied by `-D warnings` |
8 | 8 |
|
9 | | -error: Calling `subsec_millis()` is more concise than this calculation |
| 9 | +error: calling `subsec_millis()` is more concise than this calculation |
10 | 10 | --> $DIR/duration_subsec.rs:11:24 |
11 | 11 | | |
12 | 12 | LL | let bad_millis_2 = dur.subsec_nanos() / 1_000_000; |
13 | 13 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `dur.subsec_millis()` |
14 | 14 |
|
15 | | -error: Calling `subsec_micros()` is more concise than this calculation |
| 15 | +error: calling `subsec_micros()` is more concise than this calculation |
16 | 16 | --> $DIR/duration_subsec.rs:16:22 |
17 | 17 | | |
18 | 18 | LL | let bad_micros = dur.subsec_nanos() / 1_000; |
19 | 19 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `dur.subsec_micros()` |
20 | 20 |
|
21 | | -error: Calling `subsec_micros()` is more concise than this calculation |
| 21 | +error: calling `subsec_micros()` is more concise than this calculation |
22 | 22 | --> $DIR/duration_subsec.rs:21:13 |
23 | 23 | | |
24 | 24 | LL | let _ = (&dur).subsec_nanos() / 1_000; |
25 | 25 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(&dur).subsec_micros()` |
26 | 26 |
|
27 | | -error: Calling `subsec_micros()` is more concise than this calculation |
| 27 | +error: calling `subsec_micros()` is more concise than this calculation |
28 | 28 | --> $DIR/duration_subsec.rs:25:13 |
29 | 29 | | |
30 | 30 | LL | let _ = dur.subsec_nanos() / NANOS_IN_MICRO; |
|
0 commit comments