From fe10da9a6c4bf3cf79f46ab3e7245551208c0df1 Mon Sep 17 00:00:00 2001 From: Lucien Greathouse Date: Tue, 3 Dec 2019 16:34:46 -0800 Subject: [PATCH] Remove some PartialEq derives --- src/snapshot/instance_snapshot.rs | 2 +- src/snapshot/patch.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/snapshot/instance_snapshot.rs b/src/snapshot/instance_snapshot.rs index aae249a8..b779a2cb 100644 --- a/src/snapshot/instance_snapshot.rs +++ b/src/snapshot/instance_snapshot.rs @@ -12,7 +12,7 @@ use super::InstanceMetadata; // Possible future improvements: // - Use refcounted/interned strings // - Replace use of RbxValue with a sum of RbxValue + borrowed value -#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] +#[derive(Debug, Clone, Serialize, Deserialize)] pub struct InstanceSnapshot { /// A temporary ID applied to the snapshot that's used for Ref properties. pub snapshot_id: Option, diff --git a/src/snapshot/patch.rs b/src/snapshot/patch.rs index 6fa1eb29..1ac4acec 100644 --- a/src/snapshot/patch.rs +++ b/src/snapshot/patch.rs @@ -12,7 +12,7 @@ use super::{InstanceMetadata, InstanceSnapshot}; /// These patches shouldn't be persisted: there's no mechanism in place to make /// sure that another patch wasn't applied before this one that could cause a /// conflict! -#[derive(Debug, Default, Clone, PartialEq, Serialize, Deserialize)] +#[derive(Debug, Default, Clone, Serialize, Deserialize)] pub struct PatchSet { pub removed_instances: Vec, pub added_instances: Vec, @@ -30,14 +30,14 @@ impl<'a> PatchSet { } /// A patch containing an instance that was added to the tree. -#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] +#[derive(Debug, Clone, Serialize, Deserialize)] pub struct PatchAdd { pub parent_id: RbxId, pub instance: InstanceSnapshot, } /// A patch indicating that properties of an instance changed. -#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] +#[derive(Debug, Clone, Serialize, Deserialize)] pub struct PatchUpdate { pub id: RbxId, pub changed_name: Option,