From 663797e55b694386abb4e858f0a27124bf0cdaf3 Mon Sep 17 00:00:00 2001 From: jake Date: Sun, 26 Apr 2020 21:58:43 -0600 Subject: [PATCH] remove unneeded PartialEq derive --- src/entity/item/mod.rs | 6 +++--- src/ship/items.rs | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/entity/item/mod.rs b/src/entity/item/mod.rs index 303edf4..0ee351f 100644 --- a/src/entity/item/mod.rs +++ b/src/entity/item/mod.rs @@ -15,7 +15,7 @@ pub struct ItemId(u32); #[derive(Debug, Clone, PartialEq, Eq)] pub struct BankName(String); -#[derive(Clone, Debug, PartialEq)] +#[derive(Clone, Debug)] pub enum ItemLocation { Inventory { character_id: CharacterEntityId, @@ -96,13 +96,13 @@ impl ItemDetail { } } -#[derive(Clone, Debug, PartialEq)] +#[derive(Clone, Debug)] pub struct NewItemEntity { pub location: ItemLocation, pub item: ItemDetail, } -#[derive(Clone, Debug, PartialEq)] +#[derive(Clone, Debug)] pub struct ItemEntity { pub id: ItemEntityId, pub location: ItemLocation, diff --git a/src/ship/items.rs b/src/ship/items.rs index 9dcd068..52de888 100644 --- a/src/ship/items.rs +++ b/src/ship/items.rs @@ -14,8 +14,8 @@ use crate::entity::item::mag::Mag; use crate::entity::item::Meseta; -#[derive(Debug, PartialEq)] -pub enum ItemInstance { +#[derive(Debug)] +enum ItemInstance { Individual(ItemEntity), Stacked(Vec), Meseta(Meseta),