clippy: Fix remaining warnings in generated code (#31844)

* clippy: fix warnings in generated code

* clippy: fix wrap_panic closure warnings
This commit is contained in:
eri 2024-03-25 12:12:36 +01:00 committed by GitHub
parent d8adeb1b44
commit 9a76dd9325
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 48 additions and 32 deletions

View file

@ -6,7 +6,7 @@ use dom_struct::dom_struct;
use js::rust::{HandleObject, HandleValue};
use servo_atoms::Atom;
use crate::dom::bindings::codegen::Bindings::EventBinding::{self, EventMethods};
use crate::dom::bindings::codegen::Bindings::EventBinding::EventMethods;
use crate::dom::bindings::codegen::Bindings::ExtendableEventBinding;
use crate::dom::bindings::error::{Error, ErrorResult, Fallible};
use crate::dom::bindings::inheritance::Castable;
@ -94,9 +94,7 @@ impl ExtendableEvent {
}
impl Default for ExtendableEventBinding::ExtendableEventInit {
fn default() -> ExtendableEventBinding::ExtendableEventInit {
ExtendableEventBinding::ExtendableEventInit {
parent: EventBinding::EventInit::default(),
}
fn default() -> Self {
Self::empty()
}
}