bevy/examples/shader
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
..
animate_shader.rs Update codebase to use IntoIterator where possible. (#5269) 2022-07-11 15:28:50 +00:00
array_texture.rs Better Materials: AsBindGroup trait and derive, simpler Material trait (#5053) 2022-06-30 23:48:46 +00:00
compute_shader_game_of_life.rs Update commented vsync code in example to use present_mode (#4926) 2022-06-04 20:00:01 +00:00
custom_vertex_attribute.rs Better Materials: AsBindGroup trait and derive, simpler Material trait (#5053) 2022-06-30 23:48:46 +00:00
post_processing.rs Update codebase to use IntoIterator where possible. (#5269) 2022-07-11 15:28:50 +00:00
shader_defs.rs Better Materials: AsBindGroup trait and derive, simpler Material trait (#5053) 2022-06-30 23:48:46 +00:00
shader_instancing.rs Update codebase to use IntoIterator where possible. (#5269) 2022-07-11 15:28:50 +00:00
shader_material_glsl.rs Update shader_material_glsl example to include texture sampling (#5215) 2022-07-08 01:14:22 +00:00
shader_material_screenspace_texture.rs Better Materials: AsBindGroup trait and derive, simpler Material trait (#5053) 2022-06-30 23:48:46 +00:00
shader_material.rs Better Materials: AsBindGroup trait and derive, simpler Material trait (#5053) 2022-06-30 23:48:46 +00:00