aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortanishka <109246904+taniishkaaa@users.noreply.github.com>2024-10-16 21:18:53 +0530
committerGitHub <noreply@github.com>2024-10-16 15:48:53 +0000
commitcde6931f4bcb6832d3fbd37c3930b63e759cc279 (patch)
tree5101dfc5aa008b4c750b4906b6c5115eba135b13
parenta646c850c6f7dcaf64ad286342b654ffdbebd274 (diff)
downloadservo-cde6931f4bcb6832d3fbd37c3930b63e759cc279.tar.gz
servo-cde6931f4bcb6832d3fbd37c3930b63e759cc279.zip
clippy: Fix warnings in `components/script/dom` (#33860)
* clippy: Fix warnings in components/script/dom Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com> * Move allow to WRAP level Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com> --------- Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com>
-rw-r--r--components/script/dom/bindings/reflector.rs2
-rw-r--r--components/script/dom/xrinputsourceschangeevent.rs1
2 files changed, 3 insertions, 0 deletions
diff --git a/components/script/dom/bindings/reflector.rs b/components/script/dom/bindings/reflector.rs
index 9d3d27141ef..843d7dee131 100644
--- a/components/script/dom/bindings/reflector.rs
+++ b/components/script/dom/bindings/reflector.rs
@@ -143,6 +143,7 @@ impl MutDomObject for Reflector {
/// A trait to provide a function pointer to wrap function for DOM objects.
pub trait DomObjectWrap: Sized + DomObject {
/// Function pointer to the general wrap function type
+ #[allow(clippy::type_complexity)]
const WRAP: unsafe fn(
JSContext,
&GlobalScope,
@@ -156,6 +157,7 @@ pub trait DomObjectWrap: Sized + DomObject {
/// DOM iterator interfaces.
pub trait DomObjectIteratorWrap: DomObjectWrap + JSTraceable + Iterable {
/// Function pointer to the wrap function for `IterableIterator<T>`
+ #[allow(clippy::type_complexity)]
const ITER_WRAP: unsafe fn(
JSContext,
&GlobalScope,
diff --git a/components/script/dom/xrinputsourceschangeevent.rs b/components/script/dom/xrinputsourceschangeevent.rs
index 14fda803697..b44bc17382a 100644
--- a/components/script/dom/xrinputsourceschangeevent.rs
+++ b/components/script/dom/xrinputsourceschangeevent.rs
@@ -46,6 +46,7 @@ impl XRInputSourcesChangeEvent {
}
}
+ #[allow(clippy::too_many_arguments)]
pub fn new(
global: &GlobalScope,
type_: Atom,