diff --git a/scripts/src/main.rs b/scripts/src/main.rs index ea812bc..2ee7716 100644 --- a/scripts/src/main.rs +++ b/scripts/src/main.rs @@ -71,10 +71,10 @@ fn main() -> Result<(), Box> { let mut reader = reader::EventReader::new(Cursor::new(xml)); loop { match reader.next()? { - XmlEvent::EndDocument { .. } => { + XmlEvent::EndDocument{..} => { break; } - XmlEvent::StartElement { name, attributes, .. } => { + XmlEvent::StartElement{name, attributes, ..} => { let tagname = name.local_name; match tagname.as_str() { "valsi" => { @@ -129,7 +129,7 @@ fn main() -> Result<(), Box> { } current_tag.clear(); } - XmlEvent::EndElement { name } => { + XmlEvent::EndElement{name} => { let tagname = name.local_name; if tagname == "valsi" && !skip { words.push(entry.clone());