2020-08-11 09:31:02 -05:00
|
|
|
error: calling `subsec_millis()` is more concise than this calculation
|
2019-01-13 05:06:28 -06:00
|
|
|
--> $DIR/duration_subsec.rs:10:24
|
2018-08-01 09:30:44 -05:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | let bad_millis_1 = dur.subsec_micros() / 1_000;
|
2018-08-01 09:30:44 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `dur.subsec_millis()`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::duration-subsec` implied by `-D warnings`
|
2018-03-18 15:27:15 -05:00
|
|
|
|
2020-08-11 09:31:02 -05:00
|
|
|
error: calling `subsec_millis()` is more concise than this calculation
|
2019-01-13 05:06:28 -06:00
|
|
|
--> $DIR/duration_subsec.rs:11:24
|
2018-08-01 09:30:44 -05:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | let bad_millis_2 = dur.subsec_nanos() / 1_000_000;
|
2018-08-01 09:30:44 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `dur.subsec_millis()`
|
2018-06-12 01:25:10 -05:00
|
|
|
|
2020-08-11 09:31:02 -05:00
|
|
|
error: calling `subsec_micros()` is more concise than this calculation
|
2019-01-13 05:06:28 -06:00
|
|
|
--> $DIR/duration_subsec.rs:16:22
|
2018-03-18 15:27:15 -05:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | let bad_micros = dur.subsec_nanos() / 1_000;
|
2018-06-12 01:25:10 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `dur.subsec_micros()`
|
2018-03-18 15:27:15 -05:00
|
|
|
|
2020-08-11 09:31:02 -05:00
|
|
|
error: calling `subsec_micros()` is more concise than this calculation
|
2019-01-13 05:06:28 -06:00
|
|
|
--> $DIR/duration_subsec.rs:21:13
|
2018-03-18 15:27:15 -05:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | let _ = (&dur).subsec_nanos() / 1_000;
|
2018-03-18 15:27:15 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(&dur).subsec_micros()`
|
|
|
|
|
2020-08-11 09:31:02 -05:00
|
|
|
error: calling `subsec_micros()` is more concise than this calculation
|
2019-01-13 05:06:28 -06:00
|
|
|
--> $DIR/duration_subsec.rs:25:13
|
2018-03-18 15:27:15 -05:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | let _ = dur.subsec_nanos() / NANOS_IN_MICRO;
|
2018-03-18 15:27:15 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `dur.subsec_micros()`
|
|
|
|
|
2018-06-12 01:25:10 -05:00
|
|
|
error: aborting due to 5 previous errors
|
2018-03-18 15:27:15 -05:00
|
|
|
|