diff options
author | tanishka <109246904+taniishkaaa@users.noreply.github.com> | 2024-10-04 21:57:23 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-04 16:27:23 +0000 |
commit | 4850caeec49b22e9c4e9618185408882ad76832c (patch) | |
tree | 0d1792eb9515ed843a27dbb2ebcc7d1b3daba456 /components/script | |
parent | 2234bc56a54c488d39762060b4dbd3e613c8174b (diff) | |
download | servo-4850caeec49b22e9c4e9618185408882ad76832c.tar.gz servo-4850caeec49b22e9c4e9618185408882ad76832c.zip |
clippy: Fix too_many_arguments warnings (#33648)
Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com>
Diffstat (limited to 'components/script')
-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 |
3 files changed, 4 insertions, 0 deletions
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, |