From b22ce086f7c25cb19ca85d0f09fefbfce23e9289 Mon Sep 17 00:00:00 2001 From: jake Date: Mon, 27 Apr 2020 07:07:09 -0600 Subject: [PATCH] guess I needed this PartialEq for the tests --- src/entity/item/mod.rs | 4 ++-- src/ship/items.rs | 2 +- src/ship/map.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/entity/item/mod.rs b/src/entity/item/mod.rs index 58e09b6..e3c801d 100644 --- a/src/entity/item/mod.rs +++ b/src/entity/item/mod.rs @@ -16,7 +16,7 @@ pub struct ItemId(u32); #[derive(Debug, Clone, PartialEq, Eq)] pub struct BankName(String); -#[derive(Clone, Debug)] +#[derive(Clone, Debug, PartialEq)] pub enum ItemLocation { Inventory { character_id: CharacterEntityId, @@ -106,7 +106,7 @@ pub struct NewItemEntity { pub item: ItemDetail, } -#[derive(Clone, Debug)] +#[derive(Clone, Debug, PartialEq)] pub struct ItemEntity { pub id: ItemEntityId, pub location: ItemLocation, diff --git a/src/ship/items.rs b/src/ship/items.rs index ebce01e..a00a1b1 100644 --- a/src/ship/items.rs +++ b/src/ship/items.rs @@ -17,7 +17,7 @@ use crate::ship::drops::{ItemDrop, ItemDropType}; use crate::ship::ship::ShipError; -#[derive(Debug)] +#[derive(Debug, PartialEq)] enum ItemInstance { Individual(ItemEntity), Stacked(Vec), diff --git a/src/ship/map.rs b/src/ship/map.rs index 4b60645..52e297e 100644 --- a/src/ship/map.rs +++ b/src/ship/map.rs @@ -349,7 +349,7 @@ enum MapVariantMode { Offline, } -#[derive(Debug, Copy, Clone)] +#[derive(Debug, Copy, Clone, PartialEq)] pub enum MapArea { Pioneer2Ep1, Forest1,