mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
clippy: Fix too_many_arguments warnings (#33648)
Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com>
This commit is contained in:
parent
2234bc56a5
commit
4850caeec4
8 changed files with 13 additions and 0 deletions
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -552,6 +552,7 @@ impl LayoutThread {
|
|||
self.root_flow.borrow().clone()
|
||||
}
|
||||
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
fn new(
|
||||
id: PipelineId,
|
||||
url: ServoUrl,
|
||||
|
|
|
@ -495,6 +495,7 @@ impl Layout for LayoutThread {
|
|||
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
impl LayoutThread {
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
fn new(
|
||||
id: PipelineId,
|
||||
url: ServoUrl,
|
||||
|
@ -589,6 +590,7 @@ impl LayoutThread {
|
|||
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
// Create a layout context for use in building display lists, hit testing, &c.
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
fn build_layout_context<'a>(
|
||||
&'a self,
|
||||
guards: StylesheetGuards<'a>,
|
||||
|
|
|
@ -120,6 +120,7 @@ fn create_svg_element(
|
|||
|
||||
// https://dom.spec.whatwg.org/#concept-create-element
|
||||
#[allow(unsafe_code)]
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
fn create_html_element(
|
||||
name: QualName,
|
||||
prefix: Option<Prefix>,
|
||||
|
|
|
@ -88,6 +88,7 @@ impl Gamepad {
|
|||
}
|
||||
}
|
||||
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
pub fn new(
|
||||
global: &GlobalScope,
|
||||
gamepad_id: u32,
|
||||
|
@ -115,6 +116,7 @@ impl Gamepad {
|
|||
/// The spec says UAs *may* do this for fingerprint mitigation, and it also
|
||||
/// happens to simplify implementation
|
||||
/// <https://www.w3.org/TR/gamepad/#fingerprinting-mitigation>
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
fn new_with_proto(
|
||||
global: &GlobalScope,
|
||||
gamepad_id: u32,
|
||||
|
|
|
@ -107,6 +107,7 @@ impl GPUBuffer {
|
|||
}
|
||||
}
|
||||
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
pub fn new(
|
||||
global: &GlobalScope,
|
||||
channel: WebGPU,
|
||||
|
|
|
@ -548,6 +548,7 @@ impl crate::WGPU {
|
|||
}
|
||||
}
|
||||
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
fn update_wr_image(
|
||||
result: Result<(), BufferAccessError>,
|
||||
global: Arc<Global>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue