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,