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/state.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/state.rs') diff --git a/src/state.rs b/src/state.rs index 105cade..aae153f 100644 --- a/src/state.rs +++ b/src/state.rs @@ -2,7 +2,7 @@ use crate::construct; use crate::tokenizer::Tokenizer; /// The result of a state. -#[derive(Debug, PartialEq, Copy, Clone)] +#[derive(Clone, Copy, Debug, Eq, PartialEq)] pub enum State { /// Move to [`Name`][] next. Next(Name), @@ -15,7 +15,7 @@ pub enum State { } /// Names of functions to move to. -#[derive(Debug, Clone, Copy, PartialEq)] +#[derive(Clone, Copy, Debug, Eq, PartialEq)] #[allow(clippy::enum_variant_names)] pub enum Name { AttentionStart, -- cgit