From d7c2601f959bc12a64cd25cef59c837e1e8c2b2a Mon Sep 17 00:00:00 2001 From: Jack Wills <32690432+mrjackwills@users.noreply.github.com> Date: Sat, 27 Aug 2022 14:16:58 +0000 Subject: [PATCH] feat: derive Eq where appropriate --- src/app_data/container_state.rs | 2 +- src/app_data/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app_data/container_state.rs b/src/app_data/container_state.rs index 183186c..d18572f 100644 --- a/src/app_data/container_state.rs +++ b/src/app_data/container_state.rs @@ -78,7 +78,7 @@ impl StatefulList { } /// States of the container -#[derive(Clone, Debug, PartialEq, PartialOrd)] +#[derive(Clone, Debug, PartialEq, Eq, PartialOrd)] pub enum State { Dead, Exited, diff --git a/src/app_data/mod.rs b/src/app_data/mod.rs index 39bc5ee..7638163 100644 --- a/src/app_data/mod.rs +++ b/src/app_data/mod.rs @@ -20,7 +20,7 @@ pub struct AppData { sorted_by: Option<(Header, SortedOrder)>, } -#[derive(Debug, Clone, PartialEq)] +#[derive(Debug, Clone, PartialEq, Eq)] pub enum SortedOrder { Asc, Desc,