mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-17 04:48:21 +00:00
Rust 1.84 lints (#6781)
* Fix few lints * Fix remaining lints * Use fully qualified syntax
This commit is contained in:
@@ -286,7 +286,7 @@ struct ValidatorsAndDeposits {
|
||||
}
|
||||
|
||||
impl ValidatorsAndDeposits {
|
||||
async fn new<'a, E: EthSpec>(config: CreateConfig, spec: &ChainSpec) -> Result<Self, String> {
|
||||
async fn new<E: EthSpec>(config: CreateConfig, spec: &ChainSpec) -> Result<Self, String> {
|
||||
let CreateConfig {
|
||||
// The output path is handled upstream.
|
||||
output_path: _,
|
||||
@@ -545,7 +545,7 @@ pub async fn cli_run<E: EthSpec>(
|
||||
}
|
||||
}
|
||||
|
||||
async fn run<'a, E: EthSpec>(config: CreateConfig, spec: &ChainSpec) -> Result<(), String> {
|
||||
async fn run<E: EthSpec>(config: CreateConfig, spec: &ChainSpec) -> Result<(), String> {
|
||||
let output_path = config.output_path.clone();
|
||||
|
||||
if !output_path.exists() {
|
||||
|
||||
@@ -86,7 +86,7 @@ pub async fn cli_run(matches: &ArgMatches, dump_config: DumpConfig) -> Result<()
|
||||
}
|
||||
}
|
||||
|
||||
async fn run<'a>(config: DeleteConfig) -> Result<(), String> {
|
||||
async fn run(config: DeleteConfig) -> Result<(), String> {
|
||||
let DeleteConfig {
|
||||
vc_url,
|
||||
vc_token_path,
|
||||
|
||||
@@ -209,7 +209,7 @@ pub async fn cli_run(matches: &ArgMatches, dump_config: DumpConfig) -> Result<()
|
||||
}
|
||||
}
|
||||
|
||||
async fn run<'a>(config: ImportConfig) -> Result<(), String> {
|
||||
async fn run(config: ImportConfig) -> Result<(), String> {
|
||||
let ImportConfig {
|
||||
validators_file_path,
|
||||
keystore_file_path,
|
||||
|
||||
@@ -58,7 +58,7 @@ pub async fn cli_run(matches: &ArgMatches, dump_config: DumpConfig) -> Result<()
|
||||
}
|
||||
}
|
||||
|
||||
async fn run<'a>(config: ListConfig) -> Result<Vec<SingleKeystoreResponse>, String> {
|
||||
async fn run(config: ListConfig) -> Result<Vec<SingleKeystoreResponse>, String> {
|
||||
let ListConfig {
|
||||
vc_url,
|
||||
vc_token_path,
|
||||
|
||||
@@ -277,7 +277,7 @@ pub async fn cli_run(matches: &ArgMatches, dump_config: DumpConfig) -> Result<()
|
||||
}
|
||||
}
|
||||
|
||||
async fn run<'a>(config: MoveConfig) -> Result<(), String> {
|
||||
async fn run(config: MoveConfig) -> Result<(), String> {
|
||||
let MoveConfig {
|
||||
src_vc_url,
|
||||
src_vc_token_path,
|
||||
|
||||
Reference in New Issue
Block a user