From ed72a2e16ece757941786f586bd2a80022892a74 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Mon, 15 Aug 2022 12:07:30 +0200 Subject: Add derive of `Eq` where possible --- src/event.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/event.rs') diff --git a/src/event.rs b/src/event.rs index 09973e7..ab91a25 100644 --- a/src/event.rs +++ b/src/event.rs @@ -1,5 +1,5 @@ /// Semantic label of a span. -#[derive(Debug, Clone, PartialEq, Hash, Eq)] +#[derive(Clone, Debug, Eq, Hash, PartialEq)] pub enum Name { /// Attention sequence. /// @@ -1877,7 +1877,7 @@ pub const VOID_EVENTS: [Name; 40] = [ ]; /// Embedded content type. -#[derive(Debug, Clone, PartialEq)] +#[derive(Clone, Debug, Eq, PartialEq)] pub enum Content { /// Represents [flow content][crate::construct::flow]. Flow, @@ -1888,7 +1888,7 @@ pub enum Content { } /// Link to another event. -#[derive(Debug, Clone)] +#[derive(Clone, Debug)] pub struct Link { pub previous: Option, pub next: Option, @@ -1899,7 +1899,7 @@ pub struct Link { /// /// The interface for the location in the document comes from unist `Point`: /// . -#[derive(Debug, Clone)] +#[derive(Clone, Debug)] pub struct Point { /// 1-indexed line number. pub line: usize, @@ -1917,7 +1917,7 @@ pub struct Point { } /// Event kinds. -#[derive(Debug, PartialEq, Clone)] +#[derive(Clone, Debug, Eq, PartialEq)] pub enum Kind { /// The start of something. Enter, @@ -1926,7 +1926,7 @@ pub enum Kind { } /// Something semantic happening somewhere. -#[derive(Debug, Clone)] +#[derive(Clone, Debug)] pub struct Event { /// Kind of event. pub kind: Kind, -- cgit