remove serde tag

This commit is contained in:
Felix Ableitner 2024-09-17 11:49:36 +02:00
parent 6884dd295a
commit 1bbc7a9008

View file

@ -160,7 +160,6 @@ pub enum LemmyErrorType {
#[derive(Display, Debug, Serialize, Deserialize, Clone, PartialEq, Eq, EnumIter, Hash)] #[derive(Display, Debug, Serialize, Deserialize, Clone, PartialEq, Eq, EnumIter, Hash)]
#[cfg_attr(feature = "full", derive(ts_rs::TS))] #[cfg_attr(feature = "full", derive(ts_rs::TS))]
#[cfg_attr(feature = "full", ts(export))] #[cfg_attr(feature = "full", ts(export))]
#[serde(tag = "error", content = "message", rename_all = "snake_case")]
#[non_exhaustive] #[non_exhaustive]
pub enum FederationError { pub enum FederationError {
// TODO: merge into a single NotFound error // TODO: merge into a single NotFound error