bevy/examples/window
Clar Fon e79bc7811d
Fix *most* clippy lints (#15906)
# Objective

Another clippy-lint fix: the goal is so that `ci lints` actually
displays the problems that a contributor caused, and not a bunch of
existing stuff in the repo. (when run on nightly)

## Solution

This fixes all but the `clippy::needless_lifetimes` lint, which will
result in substantially more fixes and be in other PR(s). I also
explicitly allow `non_local_definitions` since it is [not working
correctly, but will be
fixed](https://github.com/rust-lang/rust/issues/131643).

A few things were manually fixed: for example, some places had an
explicitly defined `div_ceil` function that was used, which is no longer
needed since this function is stable on unsigned integers. Also, empty
lines in doc comments were handled individually.

## Testing

I ran `cargo clippy --workspace --all-targets --all-features --fix
--allow-staged` with the `clippy::needless_lifetimes` lint marked as
`allow` in `Cargo.toml` to avoid fixing that too. It now passes with all
but the listed lint.
2024-10-14 20:52:35 +00:00
..
clear_color.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
custom_user_event.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
low_power.rs Migrate from Query::single and friends to Single (#15872) 2024-10-13 20:32:06 +00:00
monitor_info.rs Text rework (#15591) 2024-10-09 18:35:36 +00:00
multiple_windows.rs Text rework (#15591) 2024-10-09 18:35:36 +00:00
scale_factor_override.rs Migrate from Query::single and friends to Single (#15872) 2024-10-13 20:32:06 +00:00
screenshot.rs Text rework (#15591) 2024-10-09 18:35:36 +00:00
transparent_window.rs Migrate bevy_sprite to required components (#15489) 2024-10-09 16:17:26 +00:00
window_resizing.rs Migrate from Query::single and friends to Single (#15872) 2024-10-13 20:32:06 +00:00
window_settings.rs Fix *most* clippy lints (#15906) 2024-10-14 20:52:35 +00:00