2023-09-25 04:28:58 -05:00
|
|
|
error: it is more concise to loop over references to containers instead of using explicit iteration methods
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui-toml/explicit_iter_loop/explicit_iter_loop.rs:6:14
|
2023-09-25 04:28:58 -05:00
|
|
|
|
|
|
|
|
LL | for _ in rmvec.iter() {}
|
|
|
|
| ^^^^^^^^^^^^ help: to write this more concisely, try: `&*rmvec`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::explicit-iter-loop` implied by `-D warnings`
|
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::explicit_iter_loop)]`
|
|
|
|
|
|
|
|
error: it is more concise to loop over references to containers instead of using explicit iteration methods
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui-toml/explicit_iter_loop/explicit_iter_loop.rs:8:14
|
2023-09-25 04:28:58 -05:00
|
|
|
|
|
|
|
|
LL | for _ in rmvec.iter_mut() {}
|
|
|
|
| ^^^^^^^^^^^^^^^^ help: to write this more concisely, try: `&mut *rmvec`
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|