mirror of
https://github.com/servo/servo.git
synced 2025-07-23 23:33:43 +01:00
Fixed some clippy warnings in components/script/dom (#33757)
* Fixed some clippy warnings in components/script/dom Signed-off-by: jahielkomu <ktumuhairwe24@gmail.com> * Incorporated review suggestions Signed-off-by: jahielkomu <ktumuhairwe24@gmail.com> --------- Signed-off-by: jahielkomu <ktumuhairwe24@gmail.com>
This commit is contained in:
parent
9a8e7f4867
commit
0c4720140f
2 changed files with 2 additions and 0 deletions
|
@ -18,6 +18,7 @@ use crate::dom::globalscope::GlobalScope;
|
||||||
use crate::script_runtime::CanGc;
|
use crate::script_runtime::CanGc;
|
||||||
|
|
||||||
#[repr(u16)]
|
#[repr(u16)]
|
||||||
|
#[allow(clippy::enum_variant_names)]
|
||||||
#[derive(Clone, Copy, Debug, Eq, JSTraceable, MallocSizeOf, Ord, PartialEq, PartialOrd)]
|
#[derive(Clone, Copy, Debug, Eq, JSTraceable, MallocSizeOf, Ord, PartialEq, PartialOrd)]
|
||||||
pub enum DOMErrorName {
|
pub enum DOMErrorName {
|
||||||
IndexSizeError = DOMExceptionConstants::INDEX_SIZE_ERR,
|
IndexSizeError = DOMExceptionConstants::INDEX_SIZE_ERR,
|
||||||
|
|
|
@ -58,6 +58,7 @@ use crate::realms::{enter_realm, InRealm};
|
||||||
use crate::script_runtime::CanGc;
|
use crate::script_runtime::CanGc;
|
||||||
|
|
||||||
#[derive(Clone, JSTraceable, MallocSizeOf, PartialEq)]
|
#[derive(Clone, JSTraceable, MallocSizeOf, PartialEq)]
|
||||||
|
#[allow(clippy::enum_variant_names)]
|
||||||
pub enum CommonEventHandler {
|
pub enum CommonEventHandler {
|
||||||
EventHandler(#[ignore_malloc_size_of = "Rc"] Rc<EventHandlerNonNull>),
|
EventHandler(#[ignore_malloc_size_of = "Rc"] Rc<EventHandlerNonNull>),
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue