diff --git a/tamer/src/parse.rs b/tamer/src/parse.rs index 6a5faf39..d8c3121e 100644 --- a/tamer/src/parse.rs +++ b/tamer/src/parse.rs @@ -121,7 +121,7 @@ pub trait ParseState: Default + PartialEq + Eq + Debug { type Object: Object; /// Errors specific to this set of states. - type Error: Debug + Diagnostic + PartialEq + Eq; + type Error: Debug + Diagnostic + PartialEq; type Context: Debug = EmptyContext; @@ -383,7 +383,7 @@ pub type ParseStateResult = Result, ::Error>; /// Conceptually, /// imagine the act of a state transition producing data. /// See [`Transition`] for convenience methods for producing this tuple. -#[derive(Debug, PartialEq, Eq)] +#[derive(Debug, PartialEq)] pub struct TransitionResult( pub Transition, pub ParseStateResult, @@ -782,7 +782,7 @@ impl> Iterator for Parser { /// Parsers may return their own unique errors via the /// [`StateError`][ParseError::StateError] variant. #[derive(Debug, PartialEq, Eq)] -pub enum ParseError { +pub enum ParseError { /// Token stream ended unexpectedly. /// /// This error means that the parser was expecting more input before @@ -833,7 +833,7 @@ impl ParseError { } } -impl From for ParseError { +impl From for ParseError { fn from(e: E) -> Self { Self::StateError(e) }