Skip to content

Commit

Permalink
style: oh f forgot this
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukáš Chudíček committed Dec 17, 2023
1 parent 77e735a commit e74abbd
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/xml_parsing/variable_update_fn_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,9 @@ fn process_output_var_name_item<XR: XmlReader<BR>, BR: BufRead>(
}
});

let item = qualitative_species
.next()
.ok_or(XmlReadingError::NoSuchAttribute(
"value after qualitativeSpecies".to_string(),
))?;
let item = qualitative_species.next().ok_or_else(|| {
XmlReadingError::NoSuchAttribute("value after qualitativeSpecies".to_string())
})?;

expect_closure_of(xml, "output")?;

Expand Down

0 comments on commit e74abbd

Please sign in to comment.