Per rustc 1.27.0, we can ensure nested results are used
This commit is contained in:
committed by
Greg Fitzgerald
parent
164bf19b36
commit
737dc1ddde
@ -252,6 +252,7 @@ impl Bank {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Process a batch of transactions.
|
/// Process a batch of transactions.
|
||||||
|
#[must_use]
|
||||||
pub fn process_transactions(&self, txs: Vec<Transaction>) -> Vec<Result<Transaction>> {
|
pub fn process_transactions(&self, txs: Vec<Transaction>) -> Vec<Result<Transaction>> {
|
||||||
let bals = &mut self.balances.write().unwrap();
|
let bals = &mut self.balances.write().unwrap();
|
||||||
debug!("processing Transactions {}", txs.len());
|
debug!("processing Transactions {}", txs.len());
|
||||||
|
Reference in New Issue
Block a user