Enable clippy::too_many_arguments (#8734)

This PR enables the
[`clippy::too_many_arguments`](https://rust-lang.github.io/rust-clippy/master/index.html#/too_many_arguments)
rule.

I opted to add `#[allow(clippy::too_many_arguments)]` on the individual
violations, as reworking them to take fewer arguments is a more involved
task.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2024-03-02 18:42:05 -05:00 committed by GitHub
parent eaf2fbb21b
commit fc8e515fe8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 18 additions and 1 deletions

View file

@ -200,6 +200,7 @@ impl Database {
}
/// Creates a new channel message.
#[allow(clippy::too_many_arguments)]
pub async fn create_channel_message(
&self,
channel_id: ChannelId,

View file

@ -543,6 +543,7 @@ impl Server {
})
}
#[allow(clippy::too_many_arguments)]
pub fn handle_connection(
self: &Arc<Self>,
connection: Connection,

View file

@ -464,6 +464,7 @@ impl<T: RandomizedTest> TestPlan<T> {
})
}
#[allow(clippy::too_many_arguments)]
async fn apply_server_operation(
plan: Arc<Mutex<Self>>,
deterministic: BackgroundExecutor,