2019-05-08 02:19:08 -05:00
|
|
|
error: this loop could be written as a `while let` loop
|
|
|
|
--> $DIR/ice-360.rs:5:5
|
|
|
|
|
|
|
|
|
LL | / loop {
|
2023-08-24 14:32:12 -05:00
|
|
|
LL | |
|
|
|
|
LL | |
|
2019-05-08 02:19:08 -05:00
|
|
|
LL | | let _ = match iter.next() {
|
2023-08-24 14:32:12 -05:00
|
|
|
... |
|
|
|
|
LL | |
|
2019-05-08 02:19:08 -05:00
|
|
|
LL | | }
|
|
|
|
| |_____^ help: try: `while let Some(ele) = iter.next() { .. }`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::while-let-loop` implied by `-D warnings`
|
|
|
|
|
2020-10-28 17:36:07 -05:00
|
|
|
error: empty `loop {}` wastes CPU cycles
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/ice-360.rs:12:9
|
2019-05-08 02:19:08 -05:00
|
|
|
|
|
|
|
|
LL | loop {}
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
2020-11-23 06:51:04 -06:00
|
|
|
= help: you should either use `panic!()` or add `std::thread::sleep(..);` to the loop body
|
2022-09-22 11:04:22 -05:00
|
|
|
= note: `-D clippy::empty-loop` implied by `-D warnings`
|
2019-05-08 02:19:08 -05:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|