mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
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:
parent
d8adeb1b44
commit
9a76dd9325
4 changed files with 48 additions and 32 deletions
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue