mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
Further expand clippy workspace lints
Achieves a notable amount of reduced async and clones.
This commit is contained in:
@@ -307,12 +307,11 @@ impl Processor {
|
||||
block_number,
|
||||
},
|
||||
) => {
|
||||
let block = match id {
|
||||
SubstrateSignId {
|
||||
id: SubstrateSignableId::CosigningSubstrateBlock(block),
|
||||
..
|
||||
} => block,
|
||||
_ => panic!("CosignSubstrateBlock didn't have CosigningSubstrateBlock ID"),
|
||||
let SubstrateSignId {
|
||||
id: SubstrateSignableId::CosigningSubstrateBlock(block), ..
|
||||
} = id
|
||||
else {
|
||||
panic!("CosignSubstrateBlock didn't have CosigningSubstrateBlock ID")
|
||||
};
|
||||
|
||||
let new_cosign = CurrentCosign { block_number, block };
|
||||
|
||||
@@ -99,7 +99,7 @@ pub async fn batch(
|
||||
participants.insert(known_signer_i);
|
||||
participants
|
||||
}
|
||||
other => panic!("coordinator didn't send back SubstratePreprocesses: {:?}", other),
|
||||
other => panic!("coordinator didn't send back SubstratePreprocesses: {other:?}"),
|
||||
};
|
||||
|
||||
for i in participants.clone() {
|
||||
|
||||
Reference in New Issue
Block a user