From 88e76d1bba836642a78d562923cefa7e1999ea91 Mon Sep 17 00:00:00 2001 From: SleeplessOne1917 Date: Fri, 9 Feb 2024 23:09:16 -0500 Subject: [PATCH] Add some convenience derives to LemmyError --- crates/utils/src/error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/utils/src/error.rs b/crates/utils/src/error.rs index 31e0c3ddd..7e5017003 100644 --- a/crates/utils/src/error.rs +++ b/crates/utils/src/error.rs @@ -5,7 +5,7 @@ use strum_macros::{Display, EnumIter}; #[cfg(feature = "ts-rs")] use ts_rs::TS; -#[derive(Display, Debug, Serialize, Deserialize, Clone, PartialEq, EnumIter)] +#[derive(Display, Debug, Serialize, Deserialize, Clone, PartialEq, Eq, EnumIter, Hash)] #[cfg_attr(feature = "ts-rs", derive(TS))] #[cfg_attr(feature = "ts-rs", ts(export))] #[serde(tag = "error", content = "message", rename_all = "snake_case")]