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
  2. 4
      lib/oxsdatatypes/src/decimal.rs
  3. 8
      lib/src/storage/backend/rocksdb.rs

@ -734,11 +734,13 @@ impl<R> RdfXmlReader<R> {
}
RdfXmlNextProduction::PropertyElt { subject } => {
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!(
"Invalid property element tag name: {}",
&tag_name
)).into());
))
.into());
};
*li_counter += 1;
NamedNode::new_unchecked(format!(

@ -26,8 +26,8 @@ impl Decimal {
return Err(TooLargeForDecimalError);
};
let Some(value) = i.checked_mul(10_i128.pow(shift)) else {
return Err(TooLargeForDecimalError);
};
return Err(TooLargeForDecimalError);
};
Ok(Self { value })
}

@ -942,10 +942,10 @@ impl Reader {
}
InnerReader::Transaction(inner) => {
let Some(inner) = inner.upgrade() else {
return Err(StorageError::Other(
"The transaction is already ended".into(),
));
};
return Err(StorageError::Other(
"The transaction is already ended".into(),
));
};
ffi_result!(rocksdb_transaction_get_pinned_cf_with_status(
*inner,
self.options,

Loading…
Cancel
Save