Per rustc 1.27.0, we can ensure nested results are used

This commit is contained in:
Greg Fitzgerald 2018-06-22 22:36:03 -07:00 committed by Greg Fitzgerald
parent 164bf19b36
commit 737dc1ddde
1 changed files with 1 additions and 0 deletions

View File

@ -252,6 +252,7 @@ impl Bank {
}
/// Process a batch of transactions.
#[must_use]
pub fn process_transactions(&self, txs: Vec<Transaction>) -> Vec<Result<Transaction>> {
let bals = &mut self.balances.write().unwrap();
debug!("processing Transactions {}", txs.len());