Upgrade to Rust 1.42 (#8836)
* Upgrade to Rust 1.42 * deref * parens Co-authored-by: Trent Nelson <trent@solana.com>
This commit is contained in:
@ -1005,7 +1005,7 @@ impl Bank {
|
||||
let results = self
|
||||
.rc
|
||||
.accounts
|
||||
.lock_accounts(txs, iteration_order.as_ref().map(|v| v.as_slice()));
|
||||
.lock_accounts(txs, iteration_order.as_deref());
|
||||
TransactionBatch::new(results, &self, txs, iteration_order)
|
||||
}
|
||||
|
||||
|
@ -39,7 +39,7 @@ impl<'a, 'b> TransactionBatch<'a, 'b> {
|
||||
}
|
||||
|
||||
pub fn iteration_order(&self) -> Option<&[usize]> {
|
||||
self.iteration_order.as_ref().map(|v| v.as_slice())
|
||||
self.iteration_order.as_deref()
|
||||
}
|
||||
pub fn bank(&self) -> &Bank {
|
||||
self.bank
|
||||
|
Reference in New Issue
Block a user