bevy/crates/bevy_sprite/src/mesh2d
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
..
color_material.rs Updated glam to 0.21. (#5142) 2022-07-03 19:55:33 +00:00
color_material.wgsl Split mesh shader files (#4867) 2022-05-31 23:23:25 +00:00
material.rs Update codebase to use IntoIterator where possible. (#5269) 2022-07-11 15:28:50 +00:00
mesh2d_bindings.wgsl Split mesh shader files (#4867) 2022-05-31 23:23:25 +00:00
mesh2d_functions.wgsl Add reusable shader functions for transforming position/normal/tangent (#4901) 2022-06-14 00:32:33 +00:00
mesh2d_types.wgsl Split mesh shader files (#4867) 2022-05-31 23:23:25 +00:00
mesh2d_view_bindings.wgsl Split mesh shader files (#4867) 2022-05-31 23:23:25 +00:00
mesh2d_view_types.wgsl Split mesh shader files (#4867) 2022-05-31 23:23:25 +00:00
mesh2d.wgsl Add reusable shader functions for transforming position/normal/tangent (#4901) 2022-06-14 00:32:33 +00:00
mesh.rs Update codebase to use IntoIterator where possible. (#5269) 2022-07-11 15:28:50 +00:00
mod.rs Add 2d meshes and materials (#3460) 2022-01-08 01:29:08 +00:00