Appease clippy
This commit is contained in:
@@ -40,7 +40,7 @@ impl<'t> Txn<'t> {
|
|||||||
fn get_txn(&self) -> Result<&rusqlite::Transaction<'t>, SqliteError> {
|
fn get_txn(&self) -> Result<&rusqlite::Transaction<'t>, SqliteError> {
|
||||||
self.txn
|
self.txn
|
||||||
.as_ref()
|
.as_ref()
|
||||||
.ok_or_else(|| SqliteError::TransactionAlreadyCommitted)
|
.ok_or(SqliteError::TransactionAlreadyCommitted)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user