diff options
Diffstat (limited to 'components')
-rw-r--r-- | components/layout_2020/flexbox/layout.rs | 4 | ||||
-rw-r--r-- | components/layout_2020/table/layout.rs | 1 | ||||
-rw-r--r-- | components/layout_thread/lib.rs | 1 | ||||
-rw-r--r-- | components/layout_thread_2020/lib.rs | 2 | ||||
-rw-r--r-- | components/script/dom/create.rs | 1 | ||||
-rw-r--r-- | components/script/dom/gamepad.rs | 2 | ||||
-rw-r--r-- | components/script/dom/gpubuffer.rs | 1 | ||||
-rw-r--r-- | components/webgpu/swapchain.rs | 1 |
8 files changed, 13 insertions, 0 deletions
diff --git a/components/layout_2020/flexbox/layout.rs b/components/layout_2020/flexbox/layout.rs index 5aab37df248..c5de3cec694 100644 --- a/components/layout_2020/flexbox/layout.rs +++ b/components/layout_2020/flexbox/layout.rs @@ -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, diff --git a/components/layout_2020/table/layout.rs b/components/layout_2020/table/layout.rs index 382c90d3dba..add1a44c377 100644 --- a/components/layout_2020/table/layout.rs +++ b/components/layout_2020/table/layout.rs @@ -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, diff --git a/components/layout_thread/lib.rs b/components/layout_thread/lib.rs index 75c1c331afc..3f7abcb9c2b 100644 --- a/components/layout_thread/lib.rs +++ b/components/layout_thread/lib.rs @@ -552,6 +552,7 @@ impl LayoutThread { self.root_flow.borrow().clone() } + #[allow(clippy::too_many_arguments)] fn new( id: PipelineId, url: ServoUrl, diff --git a/components/layout_thread_2020/lib.rs b/components/layout_thread_2020/lib.rs index c15316f92aa..28323c04c2a 100644 --- a/components/layout_thread_2020/lib.rs +++ b/components/layout_thread_2020/lib.rs @@ -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>, diff --git a/components/script/dom/create.rs b/components/script/dom/create.rs index e1b6bb5dd3d..d64f8bf3704 100644 --- a/components/script/dom/create.rs +++ b/components/script/dom/create.rs @@ -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>, diff --git a/components/script/dom/gamepad.rs b/components/script/dom/gamepad.rs index d3a5ed914d3..87f6a01a8df 100644 --- a/components/script/dom/gamepad.rs +++ b/components/script/dom/gamepad.rs @@ -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, diff --git a/components/script/dom/gpubuffer.rs b/components/script/dom/gpubuffer.rs index efcb08558b6..1708f46de3c 100644 --- a/components/script/dom/gpubuffer.rs +++ b/components/script/dom/gpubuffer.rs @@ -107,6 +107,7 @@ impl GPUBuffer { } } + #[allow(clippy::too_many_arguments)] pub fn new( global: &GlobalScope, channel: WebGPU, diff --git a/components/webgpu/swapchain.rs b/components/webgpu/swapchain.rs index ac9c7603a95..a50dd64713d 100644 --- a/components/webgpu/swapchain.rs +++ b/components/webgpu/swapchain.rs @@ -548,6 +548,7 @@ impl crate::WGPU { } } +#[allow(clippy::too_many_arguments)] fn update_wr_image( result: Result<(), BufferAccessError>, global: Arc<Global>, |