From 9829043f4e9617e9f0f899182a24203c98b92287 Mon Sep 17 00:00:00 2001 From: SleeplessOne1917 Date: Fri, 9 Feb 2024 18:07:15 -0500 Subject: [PATCH] Make error type non exhaustive --- crates/utils/src/error.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/utils/src/error.rs b/crates/utils/src/error.rs index d42a168b9..8c2d485cf 100644 --- a/crates/utils/src/error.rs +++ b/crates/utils/src/error.rs @@ -9,6 +9,7 @@ use ts_rs::TS; #[cfg_attr(feature = "ts-rs", derive(TS))] #[cfg_attr(feature = "ts-rs", ts(export))] #[serde(tag = "error", content = "message", rename_all = "snake_case")] +#[non_exhaustive] // TODO: order these based on the crate they belong to (utils, federation, db, api) pub enum LemmyErrorType { ReportReasonRequired,