Changed species parse to unwrap_or_default
This commit is contained in:
parent
388cff3a1d
commit
c729e8a27e
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ fn nested_parse(input_family:&mut oop::Family, node: roxmltree::Node, mut curren
|
||||||
input_family.get_genera().last_mut().unwrap()
|
input_family.get_genera().last_mut().unwrap()
|
||||||
.push_species(oop::Species::new(
|
.push_species(oop::Species::new(
|
||||||
node.attribute("name").unwrap().to_string(),
|
node.attribute("name").unwrap().to_string(),
|
||||||
node.attribute("defaultvalue").unwrap().to_string(),
|
node.attribute("defaultvalue").unwrap_or_default().to_string(),
|
||||||
Vec::new()
|
Vec::new()
|
||||||
));
|
));
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue