diff options
author | Clément DAVID <c.david86@gmail.com> | 2017-08-23 14:10:08 +0200 |
---|---|---|
committer | Clément DAVID <c.david86@gmail.com> | 2017-08-23 21:38:44 +0200 |
commit | c5fe2351124c673d1dc4d59355a03654b4fcc541 (patch) | |
tree | baa752c3c7847e85c0e50389400b45f7bf2fc390 /components/script/dom/event.rs | |
parent | ab73f3d61d895289898821272f6af2665c9c645c (diff) | |
download | servo-c5fe2351124c673d1dc4d59355a03654b4fcc541.tar.gz servo-c5fe2351124c673d1dc4d59355a03654b4fcc541.zip |
order derivable traits lists
Ignoring :
- **generated**.rs
- python/tidy/servo_tidy_tests/rust_tidy.rs
Diffstat (limited to 'components/script/dom/event.rs')
-rw-r--r-- | components/script/dom/event.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/dom/event.rs b/components/script/dom/event.rs index d6ba1d85109..56a0f8cedd3 100644 --- a/components/script/dom/event.rs +++ b/components/script/dom/event.rs @@ -294,7 +294,7 @@ impl EventMethods for Event { } } -#[derive(PartialEq, HeapSizeOf, Copy, Clone)] +#[derive(Clone, Copy, HeapSizeOf, PartialEq)] pub enum EventBubbles { Bubbles, DoesNotBubble @@ -318,7 +318,7 @@ impl From<EventBubbles> for bool { } } -#[derive(PartialEq, HeapSizeOf, Copy, Clone)] +#[derive(Clone, Copy, HeapSizeOf, PartialEq)] pub enum EventCancelable { Cancelable, NotCancelable @@ -342,7 +342,7 @@ impl From<EventCancelable> for bool { } } -#[derive(JSTraceable, Copy, Clone, Debug, PartialEq, Eq)] +#[derive(Clone, Copy, Debug, Eq, JSTraceable, PartialEq)] #[repr(u16)] #[derive(HeapSizeOf)] pub enum EventPhase { @@ -363,7 +363,7 @@ pub enum EventPhase { /// /// [msg]: https://doc.servo.org/script_traits/enum.ConstellationMsg.html#variant.KeyEvent /// -#[derive(JSTraceable, HeapSizeOf, Copy, Clone, PartialEq)] +#[derive(Clone, Copy, HeapSizeOf, JSTraceable, PartialEq)] pub enum EventDefault { /// The default action of the event is allowed (constructor's default) Allowed, |