summaryrefslogtreecommitdiff
path: root/src/item.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/item.rs')
-rw-r--r--src/item.rs11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/item.rs b/src/item.rs
index 37ee4f2..c8337f9 100644
--- a/src/item.rs
+++ b/src/item.rs
@@ -1,7 +1,6 @@
use std::collections::HashSet;
-use std::str::FromStr;
use serde;
use serde::{Deserialize, Serialize};
use crate::{
@@ -9,8 +8,7 @@ use crate::{
components::{
Flag,
equipment::Equippable
- },
- errors::{ParseError}
+ }
};
@@ -18,13 +16,6 @@ use crate::{
#[derive(Debug, Default, PartialEq, Eq, Clone, Hash, Serialize, Deserialize)]
pub struct ItemId(pub String);
-impl FromStr for ItemId {
- type Err = ParseError;
- fn from_str(s: &str) -> Result<Self, Self::Err> {
- Ok(Self(s.to_string()))
- }
-}
-
#[derive(Debug, Clone)]
pub struct Item {
pub ent: Template,