Changed species parse to unwrap_or_default

This commit is contained in:
Kyle Kiteveles 2023-08-16 09:24:15 -04:00
parent 388cff3a1d
commit c729e8a27e

View file

@ -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()
)); ));
}, },