You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment, when I run cargo clippy, I get a huge number of warnings related to “this function has too many arguments”. This mainly happens in fields that have a large number of filters or relay connections.
warning: this function has too many arguments(9/7)
--> src/graphql/schema/users/user_friend.rs:116:1
|
116 | #[Object]
| ^^^^^^^^^
|
= help:for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
= note: this warning originates in the attribute macro `Object` (in Nightly builds, run with -Z macro-backtrace for more info)
warning: this function has too many arguments (11/7)
--> src/graphql/schema/users/user_log.rs:506:1
|
506 | #[Object]
| ^^^^^^^^^
|
= help:for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
= note: this warning originates in the attribute macro `Object` (in Nightly builds, run with -Z macro-backtrace for more info)
warning: this function has too many arguments (8/7)
--> src/graphql/schema/users/user.rs:644:1
|
644 | #[Object]
| ^^^^^^^^^
|
= help:for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
= note: this warning originates in the attribute macro `Object` (in Nightly builds, run with -Z macro-backtrace for more info)
Description of the feature
I suggest adding the following snippet for clippy if the method has more than 4 arguments.
#[allow(clippy::too_many_arguments)]
The text was updated successfully, but these errors were encountered:
At the moment, when I run cargo clippy, I get a huge number of warnings related to “this function has too many arguments”. This mainly happens in fields that have a large number of filters or relay connections.
Description of the feature
I suggest adding the following snippet for clippy if the method has more than 4 arguments.
#[allow(clippy::too_many_arguments)]
The text was updated successfully, but these errors were encountered: