Remove unwrap (#16652)

This commit is contained in:
Jack May
2021-04-19 20:17:56 -07:00
committed by GitHub
parent 30c95d38a5
commit 01786f684e
5 changed files with 37 additions and 17 deletions

View File

@ -94,6 +94,10 @@ pub enum TransactionError {
#[error("Transactions are currently disabled due to cluster maintenance")]
ClusterMaintenance,
/// Transaction processing left an account with an outstanding borrowed reference
#[error("Transaction processing left an account with an outstanding borrowed reference")]
AccountBorrowOutstanding,
}
pub type Result<T> = result::Result<T, TransactionError>;