Skip to content

Fix nightly clippy and clippy::result_large_err again#24624

Open
beicause wants to merge 4 commits into
bevyengine:mainfrom
beicause:nightly-clippy-and-large-err
Open

Fix nightly clippy and clippy::result_large_err again#24624
beicause wants to merge 4 commits into
bevyengine:mainfrom
beicause:nightly-clippy-and-large-err

Conversation

@beicause

@beicause beicause commented Jun 14, 2026

Copy link
Copy Markdown
Member

Objective

#24206 boxes the large error in GltfError but it's not sufficient after rust-lang/rust-clippy#17070 is fixed.

Solution

Box AssetLoadError::RequestedHandleTypeMismatch so that it is reduced to 120 bytes which is below 128 bytes.

Also fix some other trivial clippy warnings.

Testing

Use the latest nightly clippy which has rust-lang/rust-clippy#17070 fixed:

cargo +nightly clippy --workspace --all-features --all-targets -- -D warnings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant