From a8a3f23b66d9de6e294f149b71d86cd6fed33dbd Mon Sep 17 00:00:00 2001 From: klykov Date: Tue, 8 Mar 2022 12:38:22 +0100 Subject: [PATCH] update clap to v3: client --- client/Cargo.toml | 2 +- client/src/blockhash_query.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/Cargo.toml b/client/Cargo.toml index a35d62d567..e970670db0 100644 --- a/client/Cargo.toml +++ b/client/Cargo.toml @@ -14,7 +14,7 @@ async-trait = "0.1.52" base64 = "0.13.0" bincode = "1.3.3" bs58 = "0.4.0" -clap = "3.1.5" +clap = { version = "3.1.5", features = ["cargo"] } crossbeam-channel = "0.5" futures-util = "0.3.21" indicatif = "0.16.2" diff --git a/client/src/blockhash_query.rs b/client/src/blockhash_query.rs index ca7522a124..0b5de19270 100644 --- a/client/src/blockhash_query.rs +++ b/client/src/blockhash_query.rs @@ -127,7 +127,7 @@ impl BlockhashQuery { } } - pub fn new_from_matches(matches: &ArgMatches<'_>) -> Self { + pub fn new_from_matches(matches: &ArgMatches) -> Self { let blockhash = value_of(matches, BLOCKHASH_ARG.name); let sign_only = matches.is_present(SIGN_ONLY_ARG.name); let nonce_account = pubkey_of(matches, NONCE_ARG.name);