bevy/crates/bevy_asset/src
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
..
io Fix *most* clippy lints (#15906) 2024-10-14 20:52:35 +00:00
processor Remove thiserror from bevy_asset (#15778) 2024-10-09 14:30:46 +00:00
server Remove incorrect equality comparisons for asset load error types (#15890) 2024-10-14 01:00:45 +00:00
assets.rs Remove thiserror from bevy_asset (#15778) 2024-10-09 14:30:46 +00:00
direct_access_ext.rs Add methods to directly load assets from World (#12023) 2024-02-27 00:28:26 +00:00
event.rs Add core and alloc over std Lints (#15281) 2024-09-27 00:59:59 +00:00
folder.rs Bevy Asset V2 (#8624) 2023-09-07 02:07:27 +00:00
handle.rs Remove the Component trait implementation from Handle (#15796) 2024-10-09 21:10:01 +00:00
id.rs Remove thiserror from bevy_asset (#15778) 2024-10-09 14:30:46 +00:00
lib.rs Remove incorrect equality comparisons for asset load error types (#15890) 2024-10-14 01:00:45 +00:00
loader.rs Remove thiserror from bevy_asset (#15778) 2024-10-09 14:30:46 +00:00
loader_builders.rs bevy_asset: Improve NestedLoader API (#15509) 2024-10-01 14:14:04 +00:00
meta.rs Cleanup unneeded lifetimes in bevy_asset (#15546) 2024-09-30 21:54:59 +00:00
path.rs Remove thiserror from bevy_asset (#15778) 2024-10-09 14:30:46 +00:00
reflect.rs Add core and alloc over std Lints (#15281) 2024-09-27 00:59:59 +00:00
render_asset.rs Split off bevy_image from bevy_render (#15650) 2024-10-04 20:16:47 +00:00
saver.rs Cleanup unneeded lifetimes in bevy_asset (#15546) 2024-09-30 21:54:59 +00:00
transformer.rs Add core and alloc over std Lints (#15281) 2024-09-27 00:59:59 +00:00