remove parse_weapons
This commit is contained in:
parent
4ff066b8b7
commit
b4bceda1c0
@ -39,14 +39,6 @@ pub trait Fighter {
|
||||
fn power (&self) -> u8;
|
||||
}
|
||||
|
||||
pub fn parse_weapons (weapons: &str) -> Vec<String> {
|
||||
if weapons == "None" {
|
||||
return vec![];
|
||||
}
|
||||
|
||||
weapons.split(", ").into_iter().map(String::from).collect()
|
||||
}
|
||||
|
||||
pub struct Parser {
|
||||
fighter_type: &'static str,
|
||||
document: Document
|
||||
|
Loading…
x
Reference in New Issue
Block a user