mirror of
https://github.com/servo/servo.git
synced 2025-06-20 23:28:59 +01: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
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue