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