Clippy
This commit is contained in:
committed by
mergify[bot]
parent
293a0d8797
commit
350bb561eb
@ -318,7 +318,7 @@ fn check_vote_account(
|
||||
) -> Result<(), String> {
|
||||
let vote_account = rpc_client
|
||||
.get_account_with_commitment(vote_account_address, CommitmentConfig::confirmed())
|
||||
.map_err(|err| format!("failed to fetch vote account: {}", err.to_string()))?
|
||||
.map_err(|err| format!("failed to fetch vote account: {}", err))?
|
||||
.value
|
||||
.ok_or_else(|| format!("vote account does not exist: {}", vote_account_address))?;
|
||||
|
||||
@ -331,7 +331,7 @@ fn check_vote_account(
|
||||
|
||||
let identity_account = rpc_client
|
||||
.get_account_with_commitment(identity_pubkey, CommitmentConfig::confirmed())
|
||||
.map_err(|err| format!("failed to fetch identity account: {}", err.to_string()))?
|
||||
.map_err(|err| format!("failed to fetch identity account: {}", err))?
|
||||
.value
|
||||
.ok_or_else(|| format!("identity account does not exist: {}", identity_pubkey))?;
|
||||
|
||||
|
@ -108,7 +108,7 @@ impl Dashboard {
|
||||
println_name_value("TPU Address:", &tpu.to_string());
|
||||
}
|
||||
if let Some(rpc) = contact_info.rpc {
|
||||
println_name_value("JSON RPC URL:", &format!("http://{}", rpc.to_string()));
|
||||
println_name_value("JSON RPC URL:", &format!("http://{}", rpc));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user