-
Notifications
You must be signed in to change notification settings - Fork 36
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
Suppress clippy's too many arguments from the generated ctor #13
Comments
I don't agree with this. A function can have too many arguments whether it is handwritten or generated code. (Of course if it is only called from generated code, that is a different story.) The lint is saying maybe you shouldn't put |
That's fine, then the codegen will need to inherit the |
If a struct has too many members,
cargo clippy
will complain that the ctor has too many parameters:Emitting a
#[cfg_attr(feature = "cargo-clippy", allow(too_many_arguments))]
on the ctor should do it, I think.The text was updated successfully, but these errors were encountered: