aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/keyboardevent.rs
diff options
context:
space:
mode:
authoreri <eri@inventati.org>2024-04-02 14:50:45 +0200
committerGitHub <noreply@github.com>2024-04-02 12:50:45 +0000
commitcc082efbfd5b86c0da53c36b0020dfdaced012e7 (patch)
tree93134401179c675c7e80246514864de54aa0a1bc /components/script/dom/keyboardevent.rs
parentf613159cbadc57aa79a2bc9925514feab0c61b36 (diff)
downloadservo-cc082efbfd5b86c0da53c36b0020dfdaced012e7.tar.gz
servo-cc082efbfd5b86c0da53c36b0020dfdaced012e7.zip
clippy: Allow `too_many_arguments` for existing functions (#31974)
* Allow `too_many_arguments` for existing functions * fix: Surround ASCII with code block in rustdoc
Diffstat (limited to 'components/script/dom/keyboardevent.rs')
-rw-r--r--components/script/dom/keyboardevent.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/script/dom/keyboardevent.rs b/components/script/dom/keyboardevent.rs
index d973f78315c..7da3ca695a8 100644
--- a/components/script/dom/keyboardevent.rs
+++ b/components/script/dom/keyboardevent.rs
@@ -64,6 +64,7 @@ impl KeyboardEvent {
reflect_dom_object_with_proto(Box::new(KeyboardEvent::new_inherited()), window, proto)
}
+ #[allow(clippy::too_many_arguments)]
pub fn new(
window: &Window,
type_: DOMString,
@@ -99,6 +100,7 @@ impl KeyboardEvent {
)
}
+ #[allow(clippy::too_many_arguments)]
fn new_with_proto(
window: &Window,
proto: Option<HandleObject>,