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

@ -2909,6 +2909,7 @@ impl Project {
}))
}
#[allow(clippy::too_many_arguments)]
async fn setup_and_insert_language_server(
this: WeakModel<Self>,
worktree_path: &Path,
@ -6182,6 +6183,7 @@ impl Project {
}
/// Pick paths that might potentially contain a match of a given search query.
#[allow(clippy::too_many_arguments)]
async fn background_search(
unnamed_buffers: Vec<Model<Buffer>>,
opened_buffers: HashMap<Arc<Path>, (Model<Buffer>, BufferSnapshot)>,