ItemDetail::tool
This commit is contained in:
parent
d4fc915164
commit
070735edbf
@ -162,6 +162,13 @@ impl ItemDetail {
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn tool(&self) -> Option<&tool::Tool> {
|
||||
match self {
|
||||
ItemDetail::Tool(tool) => Some(tool),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
|
Loading…
x
Reference in New Issue
Block a user