mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +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 std::collections::{HashMap, HashSet};
|
||||
|
||||
use euclid::Size2D;
|
||||
|
@ -81,6 +79,7 @@ pub struct BrowsingContext {
|
|||
impl BrowsingContext {
|
||||
/// Create a new browsing context.
|
||||
/// Note this just creates the browsing context, it doesn't add it to the constellation's set of browsing contexts.
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
pub fn new(
|
||||
bc_group_id: BrowsingContextGroupId,
|
||||
id: BrowsingContextId,
|
||||
|
|
|
@ -84,8 +84,6 @@
|
|||
//!
|
||||
//! See <https://github.com/servo/servo/issues/14704>
|
||||
|
||||
#![allow(clippy::too_many_arguments)]
|
||||
|
||||
use std::borrow::{Cow, ToOwned};
|
||||
use std::collections::hash_map::Entry;
|
||||
use std::collections::{HashMap, HashSet, VecDeque};
|
||||
|
@ -615,6 +613,7 @@ where
|
|||
SWF: ServiceWorkerManagerFactory,
|
||||
{
|
||||
/// Create a new constellation thread.
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
pub fn start(
|
||||
state: InitialConstellationState,
|
||||
layout_factory: Arc<dyn LayoutFactory>,
|
||||
|
@ -941,6 +940,7 @@ where
|
|||
}
|
||||
|
||||
/// Helper function for creating a pipeline
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
fn new_pipeline(
|
||||
&mut self,
|
||||
pipeline_id: PipelineId,
|
||||
|
@ -1126,6 +1126,7 @@ where
|
|||
}
|
||||
|
||||
/// Create a new browsing context and update the internal bookkeeping.
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
fn new_browsing_context(
|
||||
&mut self,
|
||||
browsing_context_id: BrowsingContextId,
|
||||
|
|
|
@ -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 std::borrow::Cow;
|
||||
use std::collections::{HashMap, HashSet};
|
||||
use std::rc::Rc;
|
||||
|
@ -349,6 +347,7 @@ impl Pipeline {
|
|||
}
|
||||
|
||||
/// Creates a new `Pipeline`, after the script has been spawned.
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
pub fn new(
|
||||
id: PipelineId,
|
||||
browsing_context_id: BrowsingContextId,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue