Fixes "let else" formatting

pull/588/head
Tpt 1 year ago committed by Thomas Tanon
parent 12a738279f
commit b06d6506cb
  1. 6
      lib/oxrdfxml/src/parser.rs

@ -734,11 +734,13 @@ impl<R> RdfXmlReader<R> {
} }
RdfXmlNextProduction::PropertyElt { subject } => { RdfXmlNextProduction::PropertyElt { subject } => {
let iri = if *tag_name == *RDF_LI { let iri = if *tag_name == *RDF_LI {
let Some(RdfXmlState::NodeElt { li_counter, .. }) = self.state.last_mut() else { let Some(RdfXmlState::NodeElt { li_counter, .. }) = self.state.last_mut()
else {
return Err(SyntaxError::msg(format!( return Err(SyntaxError::msg(format!(
"Invalid property element tag name: {}", "Invalid property element tag name: {}",
&tag_name &tag_name
)).into()); ))
.into());
}; };
*li_counter += 1; *li_counter += 1;
NamedNode::new_unchecked(format!( NamedNode::new_unchecked(format!(

Loading…
Cancel
Save