mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 01:41:09 +00:00
simplify some pattern matches to appease 1.68 clippy (#13833)
This commit is contained in:
@@ -1299,8 +1299,8 @@ where
|
||||
add_db_reads_writes(1, 0);
|
||||
|
||||
// Reverse because it's more likely to find reports from recent eras.
|
||||
match eras.iter().rev().find(|&&(_, ref sesh)| sesh <= &slash_session) {
|
||||
Some(&(ref slash_era, _)) => *slash_era,
|
||||
match eras.iter().rev().find(|&(_, sesh)| sesh <= &slash_session) {
|
||||
Some((slash_era, _)) => *slash_era,
|
||||
// Before bonding period. defensive - should be filtered out.
|
||||
None => return consumed_weight,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user