clippy: Fix too_many_arguments warnings (#33648)

Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com>
This commit is contained in:
tanishka 2024-10-04 21:57:23 +05:30 committed by GitHub
parent 2234bc56a5
commit 4850caeec4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 13 additions and 0 deletions

View file

@ -102,6 +102,7 @@ impl FlexItemLayoutResult {
.unwrap_or_else(|| item.synthesized_baseline_relative_to_margin_box(cross_size))
}
#[allow(clippy::too_many_arguments)]
fn collect_fragment(
mut self,
initial_flex_layout: &InitialFlexLineLayout,
@ -2201,6 +2202,7 @@ impl FlexItemBox {
}
/// This is an implementation of <https://drafts.csswg.org/css-flexbox/#min-size-auto>.
#[allow(clippy::too_many_arguments)]
fn automatic_min_size(
&mut self,
layout_context: &LayoutContext,
@ -2307,6 +2309,7 @@ impl FlexItemBox {
}
/// <https://drafts.csswg.org/css-flexbox/#algo-main-item>
#[allow(clippy::too_many_arguments)]
fn flex_base_size(
&mut self,
layout_context: &LayoutContext,
@ -2457,6 +2460,7 @@ impl FlexItemBox {
}
}
#[allow(clippy::too_many_arguments)]
fn layout_for_block_content_size(
&mut self,
flex_context: &FlexContext,

View file

@ -2043,6 +2043,7 @@ impl<'a> TableLayout<'a> {
col_group.style.get_inherited_box().visibility == Visibility::Collapse
}
#[allow(clippy::too_many_arguments)]
fn do_final_cell_layout(
&mut self,
row_index: usize,