Skip to content

Commit

Permalink
Fix EnumItem not respecting serde feature in field rename
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethloeffler committed Nov 11, 2024
1 parent 1ba0051 commit 006be1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rbx_types/src/basic_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ impl Enum {
#[derive(Debug, Clone, PartialEq, Eq)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize,))]
pub struct EnumItem {
#[serde(rename = "type")]
#[cfg_attr(feature = "serde", serde(rename = "type"))]
pub ty: String,
pub value: u32,
}
Expand Down

0 comments on commit 006be1f

Please sign in to comment.