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

@ -88,6 +88,7 @@ impl PaneGroup {
};
}
#[allow(clippy::too_many_arguments)]
pub(crate) fn render(
&self,
project: &Model<Project>,
@ -159,6 +160,7 @@ impl Member {
}
}
#[allow(clippy::too_many_arguments)]
pub fn render(
&self,
project: &Model<Project>,
@ -471,6 +473,7 @@ impl PaneAxis {
None
}
#[allow(clippy::too_many_arguments)]
fn render(
&self,
project: &Model<Project>,
@ -640,6 +643,7 @@ mod element {
self
}
#[allow(clippy::too_many_arguments)]
fn compute_resize(
flexes: &Arc<Mutex<Vec<f32>>>,
e: &MouseMoveEvent,
@ -728,6 +732,7 @@ mod element {
cx.refresh();
}
#[allow(clippy::too_many_arguments)]
fn push_handle(
flexes: Arc<Mutex<Vec<f32>>>,
dragged_handle: Rc<RefCell<Option<usize>>>,