bevy/crates/bevy_ui/src/render
Félix Lescaudey de Maneville f000c2b951 Clippy improvements (#4665)
# Objective

Follow up to my previous MR #3718 to add new clippy warnings to bevy:

- [x] [~~option_if_let_else~~](https://rust-lang.github.io/rust-clippy/master/#option_if_let_else) (reverted)
- [x] [redundant_else](https://rust-lang.github.io/rust-clippy/master/#redundant_else)
- [x] [match_same_arms](https://rust-lang.github.io/rust-clippy/master/#match_same_arms)
- [x] [semicolon_if_nothing_returned](https://rust-lang.github.io/rust-clippy/master/#semicolon_if_nothing_returned)
- [x] [explicit_iter_loop](https://rust-lang.github.io/rust-clippy/master/#explicit_iter_loop)
- [x] [map_flatten](https://rust-lang.github.io/rust-clippy/master/#map_flatten)

There is one commit per clippy warning, and the matching flags are added to the CI execution.

To test the CI execution you may run `cargo run -p ci -- clippy` at the root.

I choose the add the flags in the `ci` tool crate to avoid having them in every `lib.rs` but I guess it could become an issue with suprise warnings coming up after a commit/push


Co-authored-by: Carter Anderson <mcanders1@gmail.com>
2022-05-31 01:38:07 +00:00
..
camera.rs use marker components for cameras instead of name strings (#3635) 2022-03-12 00:41:06 +00:00
mod.rs Clippy improvements (#4665) 2022-05-31 01:38:07 +00:00
pipeline.rs Migrate to encase from crevice (#4339) 2022-05-18 21:09:21 +00:00
render_pass.rs Allow minimising in 2d (#4527) 2022-05-30 15:32:48 +00:00
ui.wgsl UI - keep color as 4 f32 (#4494) 2022-04-25 13:54:50 +00:00