mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 00:31:02 +00:00
Fix minor clippy lints in grandpa (#5988)
* grandpa: fix clippy lints about identity conversions * grandpa: fix clippy lints about unwrap_or_default * grandpa: fix clippy lints about explicit return * grandpa: fix clippy lints about unnecessary intermediary * grandpa: fix clippy lints about to_string * grandpa: fix clippy lints about unused imports * grandpa: fix clippy lints about increments * grandpa: fix clippy lints about unnecessary matches * grandpa: fix clippy lints about struct arguments * Fix clippy::redundant_clone * Fix clippy::clone_on_copy * Fix clippy::or_fun_call * Fix clippy::identity_conversion
This commit is contained in:
@@ -111,7 +111,7 @@ fn grandpa_observer<BE, Block: BlockT, Client, S, F>(
|
||||
Err(e) => return future::err(e.into()),
|
||||
};
|
||||
|
||||
if let Some(_) = validation_result.ghost() {
|
||||
if validation_result.ghost().is_some() {
|
||||
let finalized_hash = commit.target_hash;
|
||||
let finalized_number = commit.target_number;
|
||||
|
||||
@@ -189,7 +189,7 @@ where
|
||||
client,
|
||||
network,
|
||||
persistent_data,
|
||||
config.keystore.clone(),
|
||||
config.keystore,
|
||||
voter_commands_rx
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user