style: clean use for question_mark

- remove useless `Ok` enclosing with `?`
lint message: enclosing `Ok` and `?` operator are unneeded
help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.92.0/index.html#needless_question_mark
- use question mark instead of manual implementation
lint message: this `match` expression can be replaced with `?`
help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.92.0/index.html#question_mark
This commit is contained in:
Gwen Lg
2025-12-13 22:37:15 +01:00
parent 21db7a4d4b
commit f2f6669bf0
6 changed files with 8 additions and 12 deletions
+1 -1
View File
@@ -98,7 +98,7 @@ pub fn block_ref_recount_fn(
.upgrade()
.ok_or_message("cannot upgrade weak ptr to block_ref_table")
.map_err(db::TxError::Abort)?;
Ok(calculate_refcount(&table, tx, block)?)
calculate_refcount(&table, tx, block)
})
}