2018-06-12 01:25:10 -05:00
|
|
|
error: Calling `subsec_millis()` is more concise than this calculation
|
|
|
|
--> $DIR/duration_subsec.rs:8:24
|
2018-03-18 15:27:15 -05:00
|
|
|
|
|
2018-06-12 01:25:10 -05:00
|
|
|
8 | let bad_millis_1 = dur.subsec_micros() / 1_000;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `dur.subsec_millis()`
|
2018-03-18 15:27:15 -05:00
|
|
|
|
|
|
|
|
= note: `-D duration-subsec` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: Calling `subsec_millis()` is more concise than this calculation
|
2018-06-12 01:25:10 -05:00
|
|
|
--> $DIR/duration_subsec.rs:9:24
|
|
|
|
|
|
|
|
|
9 | let bad_millis_2 = dur.subsec_nanos() / 1_000_000;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `dur.subsec_millis()`
|
|
|
|
|
|
|
|
error: Calling `subsec_micros()` is more concise than this calculation
|
|
|
|
--> $DIR/duration_subsec.rs:14:22
|
2018-03-18 15:27:15 -05:00
|
|
|
|
|
2018-06-12 01:25:10 -05:00
|
|
|
14 | let bad_micros = dur.subsec_nanos() / 1_000;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `dur.subsec_micros()`
|
2018-03-18 15:27:15 -05:00
|
|
|
|
|
|
|
error: Calling `subsec_micros()` is more concise than this calculation
|
2018-06-12 01:25:10 -05:00
|
|
|
--> $DIR/duration_subsec.rs:19:13
|
2018-03-18 15:27:15 -05:00
|
|
|
|
|
2018-06-12 01:25:10 -05:00
|
|
|
19 | let _ = (&dur).subsec_nanos() / 1_000;
|
2018-03-18 15:27:15 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(&dur).subsec_micros()`
|
|
|
|
|
|
|
|
error: Calling `subsec_micros()` is more concise than this calculation
|
2018-06-12 01:25:10 -05:00
|
|
|
--> $DIR/duration_subsec.rs:23:13
|
2018-03-18 15:27:15 -05:00
|
|
|
|
|
2018-06-12 01:25:10 -05:00
|
|
|
23 | 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
|
|
|
|