From e2bc7a0de5d19cf68ba5d5836a8c64e92be259df Mon Sep 17 00:00:00 2001 From: jake Date: Sat, 14 Mar 2020 12:05:29 -0700 Subject: [PATCH] add use statements --- src/entity/item/shield.rs | 1 + src/entity/item/tool.rs | 2 +- src/entity/item/unit.rs | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/entity/item/shield.rs b/src/entity/item/shield.rs index 243da71..c170861 100644 --- a/src/entity/item/shield.rs +++ b/src/entity/item/shield.rs @@ -1,4 +1,5 @@ use std::convert::{TryFrom, Into}; +use serde::{Serialize, Deserialize}; #[derive(Debug, Copy, Clone, PartialEq, Serialize, Deserialize, enum_utils::FromStr, derive_more::Display)] pub enum ShieldType { diff --git a/src/entity/item/tool.rs b/src/entity/item/tool.rs index 4bf3efc..4dc6857 100644 --- a/src/entity/item/tool.rs +++ b/src/entity/item/tool.rs @@ -1,4 +1,4 @@ - +use serde::{Serialize, Deserialize}; #[derive(Debug, Copy, Clone, PartialEq, Serialize, Deserialize, enum_utils::FromStr, derive_more::Display)] pub enum ToolType { diff --git a/src/entity/item/unit.rs b/src/entity/item/unit.rs index e6ef8fe..8a55018 100644 --- a/src/entity/item/unit.rs +++ b/src/entity/item/unit.rs @@ -1,4 +1,5 @@ use std::convert::{TryFrom, Into}; +use serde::{Serialize, Deserialize}; #[derive(Debug, Copy, Clone, PartialEq, Serialize, Deserialize, enum_utils::FromStr, derive_more::Display)]