mirror of https://github.com/LemmyNet/lemmy.git
Make error type non exhaustive
parent
278448f12d
commit
9829043f4e
|
@ -9,6 +9,7 @@ use ts_rs::TS;
|
||||||
#[cfg_attr(feature = "ts-rs", derive(TS))]
|
#[cfg_attr(feature = "ts-rs", derive(TS))]
|
||||||
#[cfg_attr(feature = "ts-rs", ts(export))]
|
#[cfg_attr(feature = "ts-rs", ts(export))]
|
||||||
#[serde(tag = "error", content = "message", rename_all = "snake_case")]
|
#[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)
|
// TODO: order these based on the crate they belong to (utils, federation, db, api)
|
||||||
pub enum LemmyErrorType {
|
pub enum LemmyErrorType {
|
||||||
ReportReasonRequired,
|
ReportReasonRequired,
|
||||||
|
|
Loading…
Reference in New Issue