Skip to content

Fix nightly clippy and clippy::result_large_err again#24624

Merged
alice-i-cecile merged 4 commits into
bevyengine:mainfrom
beicause:nightly-clippy-and-large-err
Jun 17, 2026
Merged

Fix nightly clippy and clippy::result_large_err again#24624
alice-i-cecile merged 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

@kfc35 kfc35 added D-Straightforward Simple bug fixes and API improvements, docs, test and examples S-Needs-Review Needs reviewer attention (from anyone!) to move forward C-Code-Quality A section of code that is hard to understand or change labels Jun 14, 2026
@alice-i-cecile alice-i-cecile added the X-Uncontroversial This work is generally agreed upon label Jun 15, 2026
@kfc35 kfc35 added S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it and removed S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Jun 16, 2026
@alice-i-cecile alice-i-cecile added this pull request to the merge queue Jun 17, 2026
Merged via the queue into bevyengine:main with commit 0d00c91 Jun 17, 2026
48 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-Code-Quality A section of code that is hard to understand or change D-Straightforward Simple bug fixes and API improvements, docs, test and examples S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it X-Uncontroversial This work is generally agreed upon

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants