Bump MSRV to 1.56

This commit is contained in:
Alekos Filini committed 2022-05-04 17:29:07 +02:00
1 parent 6e8744d59d
commit cca69481eb
12 files changed
+35 -31

No files matched your search

+1 -2
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)))
}