mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
clippy: Allow too_many_arguments
for existing functions (#31974)
* Allow `too_many_arguments` for existing functions * fix: Surround ASCII with code block in rustdoc
This commit is contained in:
parent
f613159cba
commit
cc082efbfd
36 changed files with 86 additions and 64 deletions
|
@ -2,8 +2,6 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#![allow(clippy::too_many_arguments)]
|
||||
|
||||
use app_units::Au;
|
||||
use euclid::default::{Point2D, Rect, SideOffsets2D, Size2D};
|
||||
use style::computed_values::background_attachment::single_value::T as BackgroundAttachment;
|
||||
|
@ -145,6 +143,7 @@ pub fn clip(
|
|||
/// no intrinsic size.
|
||||
///
|
||||
/// Return `None` if the background size is zero, otherwise a [`BackgroundPlacement`].
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
pub fn placement(
|
||||
bg: &Background,
|
||||
viewport_size: Size2D<Au>,
|
||||
|
@ -304,6 +303,7 @@ fn tile_image(position: &mut Au, size: &mut Au, absolute_anchor_origin: Au, imag
|
|||
/// For either the x or the y axis adjust various values to account for tiling.
|
||||
///
|
||||
/// This is done separately for both axes because the repeat keywords may differ.
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
fn tile_image_axis(
|
||||
repeat: BackgroundRepeatKeyword,
|
||||
position: &mut Au,
|
||||
|
|
|
@ -8,8 +8,6 @@
|
|||
//! list building, as the actual painting does not happen here—only deciding *what* we're going to
|
||||
//! paint.
|
||||
|
||||
#![allow(clippy::too_many_arguments)]
|
||||
|
||||
use std::default::Default;
|
||||
use std::sync::Arc;
|
||||
use std::{f32, mem};
|
||||
|
@ -1079,6 +1077,7 @@ impl Fragment {
|
|||
|
||||
/// Adds the display items necessary to paint the borders of this fragment to a display list if
|
||||
/// necessary.
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
fn build_display_list_for_borders_if_applicable(
|
||||
&self,
|
||||
state: &mut DisplayListBuildState,
|
||||
|
|
|
@ -12,8 +12,6 @@
|
|||
//! They are therefore not exactly analogous to constructs like Skia pictures, which consist of
|
||||
//! low-level drawing primitives.
|
||||
|
||||
#![allow(clippy::too_many_arguments)]
|
||||
|
||||
use std::cmp::Ordering;
|
||||
use std::collections::HashMap;
|
||||
use std::{f32, fmt};
|
||||
|
@ -206,6 +204,7 @@ pub struct StackingContext {
|
|||
impl StackingContext {
|
||||
/// Creates a new stacking context.
|
||||
#[inline]
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
pub fn new(
|
||||
id: StackingContextId,
|
||||
context_type: StackingContextType,
|
||||
|
|
|
@ -4,8 +4,6 @@
|
|||
|
||||
//! CSS table formatting contexts.
|
||||
|
||||
#![allow(clippy::too_many_arguments)]
|
||||
|
||||
use std::cmp::max;
|
||||
use std::fmt;
|
||||
use std::iter::{Enumerate, Peekable};
|
||||
|
@ -982,6 +980,7 @@ pub fn propagate_column_inline_sizes_to_child(
|
|||
}
|
||||
|
||||
/// Lay out table cells inline according to the computer column sizes.
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
fn set_inline_position_of_child_flow(
|
||||
child_flow: &mut dyn Flow,
|
||||
child_index: usize,
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
||||
|
||||
//! Text layout.
|
||||
#![allow(clippy::too_many_arguments)]
|
||||
|
||||
use std::borrow::ToOwned;
|
||||
use std::collections::LinkedList;
|
||||
|
@ -705,6 +704,7 @@ impl RunMapping {
|
|||
|
||||
/// Flushes this run mapping to the list. `run_info` describes the text run that we're
|
||||
/// currently working on. `text` refers to the text of this fragment.
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
fn flush(
|
||||
mut self,
|
||||
mappings: &mut Vec<RunMapping>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue