feat: derive Eq where appropriate

This commit is contained in:
Jack Wills
2022-08-27 14:16:58 +00:00
parent 3bde4f5629
commit d7c2601f95
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ impl<T> StatefulList<T> {
} }
/// States of the container /// States of the container
#[derive(Clone, Debug, PartialEq, PartialOrd)] #[derive(Clone, Debug, PartialEq, Eq, PartialOrd)]
pub enum State { pub enum State {
Dead, Dead,
Exited, Exited,
+1 -1
View File
@@ -20,7 +20,7 @@ pub struct AppData {
sorted_by: Option<(Header, SortedOrder)>, sorted_by: Option<(Header, SortedOrder)>,
} }
#[derive(Debug, Clone, PartialEq)] #[derive(Debug, Clone, PartialEq, Eq)]
pub enum SortedOrder { pub enum SortedOrder {
Asc, Asc,
Desc, Desc,