fix clippy warnings

This commit is contained in:
João M. Bezerra 2022-06-04 10:59:51 -03:00
parent be0b68aee5
commit eac0a0687a
2 changed files with 4 additions and 4 deletions

View File

@ -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<io::Error>` into other variants
IoError { reason: String },
@ -42,7 +42,7 @@ pub type Result<T> = std::result::Result<T, Error>;
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,

View File

@ -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