aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/gamepad.rs
diff options
context:
space:
mode:
authortanishka <109246904+taniishkaaa@users.noreply.github.com>2024-10-04 21:57:23 +0530
committerGitHub <noreply@github.com>2024-10-04 16:27:23 +0000
commit4850caeec49b22e9c4e9618185408882ad76832c (patch)
tree0d1792eb9515ed843a27dbb2ebcc7d1b3daba456 /components/script/dom/gamepad.rs
parent2234bc56a54c488d39762060b4dbd3e613c8174b (diff)
downloadservo-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/dom/gamepad.rs')
-rw-r--r--components/script/dom/gamepad.rs2
1 files changed, 2 insertions, 0 deletions
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,