mirror of
https://github.com/servo/servo.git
synced 2025-06-08 00:23:30 +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))
|
.unwrap_or_else(|| item.synthesized_baseline_relative_to_margin_box(cross_size))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
fn collect_fragment(
|
fn collect_fragment(
|
||||||
mut self,
|
mut self,
|
||||||
initial_flex_layout: &InitialFlexLineLayout,
|
initial_flex_layout: &InitialFlexLineLayout,
|
||||||
|
@ -2201,6 +2202,7 @@ impl FlexItemBox {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// This is an implementation of <https://drafts.csswg.org/css-flexbox/#min-size-auto>.
|
/// This is an implementation of <https://drafts.csswg.org/css-flexbox/#min-size-auto>.
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
fn automatic_min_size(
|
fn automatic_min_size(
|
||||||
&mut self,
|
&mut self,
|
||||||
layout_context: &LayoutContext,
|
layout_context: &LayoutContext,
|
||||||
|
@ -2307,6 +2309,7 @@ impl FlexItemBox {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <https://drafts.csswg.org/css-flexbox/#algo-main-item>
|
/// <https://drafts.csswg.org/css-flexbox/#algo-main-item>
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
fn flex_base_size(
|
fn flex_base_size(
|
||||||
&mut self,
|
&mut self,
|
||||||
layout_context: &LayoutContext,
|
layout_context: &LayoutContext,
|
||||||
|
@ -2457,6 +2460,7 @@ impl FlexItemBox {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
fn layout_for_block_content_size(
|
fn layout_for_block_content_size(
|
||||||
&mut self,
|
&mut self,
|
||||||
flex_context: &FlexContext,
|
flex_context: &FlexContext,
|
||||||
|
|
|
@ -2043,6 +2043,7 @@ impl<'a> TableLayout<'a> {
|
||||||
col_group.style.get_inherited_box().visibility == Visibility::Collapse
|
col_group.style.get_inherited_box().visibility == Visibility::Collapse
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
fn do_final_cell_layout(
|
fn do_final_cell_layout(
|
||||||
&mut self,
|
&mut self,
|
||||||
row_index: usize,
|
row_index: usize,
|
||||||
|
|
|
@ -552,6 +552,7 @@ impl LayoutThread {
|
||||||
self.root_flow.borrow().clone()
|
self.root_flow.borrow().clone()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
fn new(
|
fn new(
|
||||||
id: PipelineId,
|
id: PipelineId,
|
||||||
url: ServoUrl,
|
url: ServoUrl,
|
||||||
|
|
|
@ -495,6 +495,7 @@ impl Layout for LayoutThread {
|
||||||
|
|
||||||
#[allow(clippy::too_many_arguments)]
|
#[allow(clippy::too_many_arguments)]
|
||||||
impl LayoutThread {
|
impl LayoutThread {
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
fn new(
|
fn new(
|
||||||
id: PipelineId,
|
id: PipelineId,
|
||||||
url: ServoUrl,
|
url: ServoUrl,
|
||||||
|
@ -589,6 +590,7 @@ impl LayoutThread {
|
||||||
|
|
||||||
#[allow(clippy::too_many_arguments)]
|
#[allow(clippy::too_many_arguments)]
|
||||||
// Create a layout context for use in building display lists, hit testing, &c.
|
// Create a layout context for use in building display lists, hit testing, &c.
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
fn build_layout_context<'a>(
|
fn build_layout_context<'a>(
|
||||||
&'a self,
|
&'a self,
|
||||||
guards: StylesheetGuards<'a>,
|
guards: StylesheetGuards<'a>,
|
||||||
|
|
|
@ -120,6 +120,7 @@ fn create_svg_element(
|
||||||
|
|
||||||
// https://dom.spec.whatwg.org/#concept-create-element
|
// https://dom.spec.whatwg.org/#concept-create-element
|
||||||
#[allow(unsafe_code)]
|
#[allow(unsafe_code)]
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
fn create_html_element(
|
fn create_html_element(
|
||||||
name: QualName,
|
name: QualName,
|
||||||
prefix: Option<Prefix>,
|
prefix: Option<Prefix>,
|
||||||
|
|
|
@ -88,6 +88,7 @@ impl Gamepad {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
pub fn new(
|
pub fn new(
|
||||||
global: &GlobalScope,
|
global: &GlobalScope,
|
||||||
gamepad_id: u32,
|
gamepad_id: u32,
|
||||||
|
@ -115,6 +116,7 @@ impl Gamepad {
|
||||||
/// The spec says UAs *may* do this for fingerprint mitigation, and it also
|
/// The spec says UAs *may* do this for fingerprint mitigation, and it also
|
||||||
/// happens to simplify implementation
|
/// happens to simplify implementation
|
||||||
/// <https://www.w3.org/TR/gamepad/#fingerprinting-mitigation>
|
/// <https://www.w3.org/TR/gamepad/#fingerprinting-mitigation>
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
fn new_with_proto(
|
fn new_with_proto(
|
||||||
global: &GlobalScope,
|
global: &GlobalScope,
|
||||||
gamepad_id: u32,
|
gamepad_id: u32,
|
||||||
|
|
|
@ -107,6 +107,7 @@ impl GPUBuffer {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
pub fn new(
|
pub fn new(
|
||||||
global: &GlobalScope,
|
global: &GlobalScope,
|
||||||
channel: WebGPU,
|
channel: WebGPU,
|
||||||
|
|
|
@ -548,6 +548,7 @@ impl crate::WGPU {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
fn update_wr_image(
|
fn update_wr_image(
|
||||||
result: Result<(), BufferAccessError>,
|
result: Result<(), BufferAccessError>,
|
||||||
global: Arc<Global>,
|
global: Arc<Global>,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue