Permitted functions to have too many arguments in components/script/dom (#33632)

Signed-off-by: jahielkomu <ktumuhairwe24@gmail.com>
This commit is contained in:
komuhangi 2024-10-03 16:33:55 +03:00 committed by GitHub
parent 43d559a1c2
commit 986c3a38a3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 8 additions and 0 deletions

View file

@ -71,6 +71,7 @@ impl HashChangeEvent {
)
}
#[allow(clippy::too_many_arguments)]
fn new_with_proto(
window: &Window,
proto: Option<HandleObject>,

View file

@ -66,6 +66,7 @@ impl MediaQueryListEvent {
)
}
#[allow(clippy::too_many_arguments)]
fn new_with_proto(
global: &GlobalScope,
proto: Option<HandleObject>,

View file

@ -112,6 +112,7 @@ impl MessageEvent {
)
}
#[allow(clippy::too_many_arguments)]
fn new_initialized(
global: &GlobalScope,
proto: Option<HandleObject>,

View file

@ -65,6 +65,7 @@ impl PromiseRejectionEvent {
}
#[allow(crown::unrooted_must_root)]
#[allow(clippy::too_many_arguments)]
fn new_with_proto(
global: &GlobalScope,
proto: Option<HandleObject>,

View file

@ -70,6 +70,7 @@ impl UIEvent {
)
}
#[allow(clippy::too_many_arguments)]
fn new_with_proto(
window: &Window,
proto: Option<HandleObject>,

View file

@ -59,6 +59,7 @@ impl XRInputSourceEvent {
)
}
#[allow(clippy::too_many_arguments)]
fn new_with_proto(
global: &GlobalScope,
proto: Option<HandleObject>,

View file

@ -62,6 +62,7 @@ impl XRReferenceSpaceEvent {
)
}
#[allow(clippy::too_many_arguments)]
fn new_with_proto(
global: &GlobalScope,
proto: Option<HandleObject>,

View file

@ -78,6 +78,7 @@ impl XRWebGLLayer {
}
}
#[allow(clippy::too_many_arguments)]
fn new(
global: &GlobalScope,
proto: Option<HandleObject>,