Bump MSRV to 1.56

This commit is contained in:
Alekos Filini
2022-05-03 12:41:22 +02:00
parent 6e8744d59d
commit cca69481eb
12 changed files with 35 additions and 31 deletions

View File

@@ -200,8 +200,7 @@ pub(crate) trait DatabaseUtils: Database {
D: FnOnce() -> Result<Option<Transaction>, Error>,
{
self.get_tx(txid, true)?
.map(|t| t.transaction)
.flatten()
.and_then(|t| t.transaction)
.map_or_else(default, |t| Ok(Some(t)))
}