Skip to content

fix: box Error to avoid clippy::result_large_err - #17

Open
jalaziz wants to merge 1 commit into
lmmx:masterfrom
jalaziz:fix/15-box-error
Open

fix: box Error to avoid clippy::result_large_err#17
jalaziz wants to merge 1 commit into
lmmx:masterfrom
jalaziz:fix/15-box-error

Conversation

@jalaziz

@jalaziz jalaziz commented Aug 22, 2026

Copy link
Copy Markdown

Error was tripping the clippy::result_large_err lint rule.

To resolve this, move the error payload into a boxed inner type which Error that derefs.

This is source-compatible for typical Result<T, Error> use and field reads (error.kind, error.path, etc.).

fixes #15

The 208-byte Error type tripped the lint on Result<T, Error> in
downstream crates. Boxing the payload keeps it pointer-sized.
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.

Error triggering clippy::result-large-err

1 participant