diff --git a/src/error.rs b/src/error.rs index 34a9c99..63685b5 100644 --- a/src/error.rs +++ b/src/error.rs @@ -11,7 +11,7 @@ use crate::utils::colors::*; #[allow(missing_docs)] /// All errors that can be generated by `ouch` -#[derive(Debug, PartialEq)] +#[derive(Debug, PartialEq, Eq)] pub enum Error { /// Not every IoError, some of them get filtered by `From` into other variants IoError { reason: String }, @@ -42,7 +42,7 @@ pub type Result = std::result::Result; pub type CowStr = Cow<'static, str>; /// Pretty final error message for end users, crashing the program after display. -#[derive(Clone, Debug, Default, PartialEq)] +#[derive(Clone, Debug, Default, PartialEq, Eq)] pub struct FinalError { /// Should be made of just one line, appears after the "\[ERROR\]" part title: CowStr, diff --git a/src/utils/question.rs b/src/utils/question.rs index 2685b92..13ef5b6 100644 --- a/src/utils/question.rs +++ b/src/utils/question.rs @@ -17,7 +17,7 @@ use crate::{ utils::colors, }; -#[derive(Debug, PartialEq, Clone, Copy)] +#[derive(Debug, PartialEq, Eq, Clone, Copy)] /// Determines if overwrite questions should be skipped or asked to the user pub enum QuestionPolicy { /// Ask the user every time @@ -28,7 +28,7 @@ pub enum QuestionPolicy { AlwaysNo, } -#[derive(Debug, PartialEq, Clone, Copy)] +#[derive(Debug, PartialEq, Eq, Clone, Copy)] /// Determines which action is being questioned pub enum QuestionAction { /// question called from a compression function