mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-19 14:35:40 +00:00
simplify some pattern matches to appease 1.68 clippy (#13833)
This commit is contained in:
@@ -502,10 +502,10 @@ where
|
||||
fn eq(&self, other: &Self) -> bool {
|
||||
use ElectionError::*;
|
||||
match (self, other) {
|
||||
(&Feasibility(ref x), &Feasibility(ref y)) if x == y => true,
|
||||
(&Miner(ref x), &Miner(ref y)) if x == y => true,
|
||||
(&DataProvider(ref x), &DataProvider(ref y)) if x == y => true,
|
||||
(&Fallback(ref x), &Fallback(ref y)) if x == y => true,
|
||||
(Feasibility(x), Feasibility(y)) if x == y => true,
|
||||
(Miner(x), Miner(y)) if x == y => true,
|
||||
(DataProvider(x), DataProvider(y)) if x == y => true,
|
||||
(Fallback(x), Fallback(y)) if x == y => true,
|
||||
_ => false,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user