Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Size of poem::Error exceeds clippy::result_large_err threshold #1004

Open
leiysky opened this issue Mar 16, 2025 · 0 comments
Open

Size of poem::Error exceeds clippy::result_large_err threshold #1004

leiysky opened this issue Mar 16, 2025 · 0 comments

Comments

@leiysky
Copy link

leiysky commented Mar 16, 2025

error: the `Err`-variant returned from this function is very large
   --> crates/server/src/http/statements.rs:333:6
    |
333 | ) -> poem::Result<StatementResultSet> {
    |      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 176 bytes
    |
    = help: try reducing the size of `poem::Error`, for example by boxing large elements or replacing it with `Box<poem::Error>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
    = note: `-D clippy::result-large-err` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::result_large_err)]`
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

No branches or pull requests

1 participant