bevy/examples/ecs
ira 4847f7e3ad Update codebase to use IntoIterator where possible. (#5269)
Remove unnecessary calls to `iter()`/`iter_mut()`.
Mainly updates the use of queries in our code, docs, and examples.

```rust
// From
for _ in list.iter() {
for _ in list.iter_mut() {

// To
for _ in &list {
for _ in &mut list {
```

We already enable the pedantic lint [clippy::explicit_iter_loop](https://rust-lang.github.io/rust-clippy/stable/) inside of Bevy. However, this only warns for a few known types from the standard library.

## Note for reviewers
As you can see the additions and deletions are exactly equal.
Maybe give it a quick skim to check I didn't sneak in a crypto miner, but you don't have to torture yourself by reading every line.
I already experienced enough pain making this PR :) 


Co-authored-by: devil-ira <justthecooldude@gmail.com>
2022-07-11 15:28:50 +00:00
..
component_change_detection.rs Update codebase to use IntoIterator where possible. (#5269) 2022-07-11 15:28:50 +00:00
custom_query_param.rs Update codebase to use IntoIterator where possible. (#5269) 2022-07-11 15:28:50 +00:00
ecs_guide.rs Update codebase to use IntoIterator where possible. (#5269) 2022-07-11 15:28:50 +00:00
event.rs Doc/module style doc blocks for examples (#4438) 2022-05-16 13:53:20 +00:00
fixed_timestep.rs Split time functionality into bevy_time (#4187) 2022-05-26 00:27:18 +00:00
generic_system.rs Update codebase to use IntoIterator where possible. (#5269) 2022-07-11 15:28:50 +00:00
hierarchy.rs Update codebase to use IntoIterator where possible. (#5269) 2022-07-11 15:28:50 +00:00
iter_combinations.rs Update codebase to use IntoIterator where possible. (#5269) 2022-07-11 15:28:50 +00:00
parallel_query.rs Camera Driven Rendering (#4745) 2022-06-02 00:12:17 +00:00
removal_detection.rs Camera Driven Rendering (#4745) 2022-06-02 00:12:17 +00:00
startup_system.rs Doc/module style doc blocks for examples (#4438) 2022-05-16 13:53:20 +00:00
state.rs Update codebase to use IntoIterator where possible. (#5269) 2022-07-11 15:28:50 +00:00
system_chaining.rs Doc/module style doc blocks for examples (#4438) 2022-05-16 13:53:20 +00:00
system_closure.rs Doc/module style doc blocks for examples (#4438) 2022-05-16 13:53:20 +00:00
system_param.rs Doc/module style doc blocks for examples (#4438) 2022-05-16 13:53:20 +00:00
system_sets.rs Doc/module style doc blocks for examples (#4438) 2022-05-16 13:53:20 +00:00
timers.rs Update codebase to use IntoIterator where possible. (#5269) 2022-07-11 15:28:50 +00:00