Skip to content

Box large variants in some Errors to reduce size and avoid clippy::result_large_err#24206

Open
beicause wants to merge 1 commit into
bevyengine:mainfrom
beicause:box-large-err
Open

Box large variants in some Errors to reduce size and avoid clippy::result_large_err#24206
beicause wants to merge 1 commit into
bevyengine:mainfrom
beicause:box-large-err

Conversation

@beicause
Copy link
Copy Markdown
Member

@beicause beicause commented May 9, 2026

Objective

Resolve #[expect(clippy::result_large_err)].

Solution

Box large variants in GltfError and LoadDirectError to reduce their size. GltfError is reduced to 64 bytes and LoadDirectError is reduced to 80 bytes.

Testing

CI

@beicause beicause changed the title Box large variants in some Errors Box large variants in some Errors to reduce size and avoid clippy::result_large_err May 9, 2026
@kfc35 kfc35 added C-Performance A change motivated by improving speed, memory usage or compile times S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels May 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-Performance A change motivated by improving speed, memory usage or compile times S-Needs-Review Needs reviewer attention (from anyone!) to move forward

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants