From 892b713acca86b594ed2e7ba7fb533b73f78d608 Mon Sep 17 00:00:00 2001 From: Peter Date: Mon, 7 Sep 2026 10:09:11 +0100 Subject: [PATCH] Derive PartialEq for send prop definitions Needed to tell whether editing a send table actually changed how its props encode. --- src/demo/sendprop.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/demo/sendprop.rs b/src/demo/sendprop.rs index f4f9318..f34ece7 100644 --- a/src/demo/sendprop.rs +++ b/src/demo/sendprop.rs @@ -386,7 +386,7 @@ impl BitWrite for SendPropFlags { } #[cfg_attr(feature = "schema", derive(schemars::JsonSchema))] -#[derive(Debug, Clone, Serialize, Deserialize)] +#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] pub enum FloatDefinition { Coord, CoordMP, @@ -429,7 +429,7 @@ impl FloatDefinition { } #[cfg_attr(feature = "schema", derive(schemars::JsonSchema))] -#[derive(Debug, Clone, Serialize, Deserialize)] +#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] pub struct SendPropDefinition { pub identifier: SendPropIdentifier, pub parse_definition: SendPropParseDefinition, @@ -448,7 +448,7 @@ impl TryFrom<&RawSendPropDefinition> for SendPropDefinition { } #[cfg_attr(feature = "schema", derive(schemars::JsonSchema))] -#[derive(Debug, Clone, Serialize, Deserialize)] +#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] pub enum SendPropParseDefinition { NormalVarInt { changes_often: bool,