Browse Source

ItemDetail::tool

pull/80/head
jake 3 years ago
parent
commit
070735edbf
  1. 7
      src/entity/item/mod.rs

7
src/entity/item/mod.rs

@ -162,6 +162,13 @@ impl ItemDetail {
_ => None, _ => None,
} }
} }
pub fn tool(&self) -> Option<&tool::Tool> {
match self {
ItemDetail::Tool(tool) => Some(tool),
_ => None,
}
}
} }
#[derive(Clone, Debug)] #[derive(Clone, Debug)]

Loading…
Cancel
Save