diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-09-29 09:32:30 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@sequoia-pgp.org> | 2021-09-30 08:31:17 +0300 |
commit | b4b7e5197cff09f59fe92a4449b5d7c84d212457 (patch) | |
tree | bdf467a38c8bafe43ae5b954f5c557adbc5bd853 | |
parent | 27c76208f5470651d46f77e16bb2e1b1c14f3a08 (diff) |
Allow up to ten arguments to functions
By default, clippy allows up to seven arguments to a function.
Anything more and it will complain.
https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
Seven is already a very large number. However, changing the number of
arguments in public functions would change the API of the library, so
I've upped the limit to ten, which is enough to placate clippy.
Arguably, when we are changing the API anyway, we should consider ways
to remove the number of arguments to functions, possibly by using the
builder pattern.
-rw-r--r-- | clippy.toml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clippy.toml b/clippy.toml index b0b9e02e..0cd7b888 100644 --- a/clippy.toml +++ b/clippy.toml @@ -2,4 +2,5 @@ # version that supports the msrv field. #msrv = "1.48.0" -enum-variant-size-threshold = 512
\ No newline at end of file +enum-variant-size-threshold = 512 +too-many-arguments-threshold = 10
\ No newline at end of file |