Skip to content

Commit

Permalink
consistent {} spacing? does this look better
Browse files Browse the repository at this point in the history
  • Loading branch information
mi2ebi committed Dec 20, 2023
1 parent bc7ef42 commit a0217e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
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" => {
Expand Down Expand Up @@ -129,7 +129,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
}
current_tag.clear();
}
XmlEvent::EndElement { name } => {
XmlEvent::EndElement{name} => {
let tagname = name.local_name;
if tagname == "valsi" && !skip {
words.push(entry.clone());
Expand Down

0 comments on commit a0217e8

Please sign in to comment.