From 724e67240ced6d48a0569dfb7ea616df81bd86d6 Mon Sep 17 00:00:00 2001 From: klykov Date: Tue, 8 Mar 2022 16:28:30 +0100 Subject: [PATCH] update clap to v3: cli-output --- cli-output/Cargo.toml | 2 +- cli-output/src/cli_output.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cli-output/Cargo.toml b/cli-output/Cargo.toml index 9b52974723..7bff60b742 100644 --- a/cli-output/Cargo.toml +++ b/cli-output/Cargo.toml @@ -12,7 +12,7 @@ documentation = "https://docs.rs/solana-cli-output" [dependencies] base64 = "0.13.0" chrono = { version = "0.4.11", features = ["serde"] } -clap = "3.1.5" +clap = { version = "3.1.5", features = ["cargo"] } console = "0.15.0" humantime = "2.0.1" Inflector = "0.11.4" diff --git a/cli-output/src/cli_output.rs b/cli-output/src/cli_output.rs index 6ef3d893f8..9f1fb62a35 100644 --- a/cli-output/src/cli_output.rs +++ b/cli-output/src/cli_output.rs @@ -81,7 +81,7 @@ impl OutputFormat { } } - pub fn from_matches(matches: &ArgMatches<'_>, output_name: &str, verbose: bool) -> Self { + pub fn from_matches(matches: &ArgMatches, output_name: &str, verbose: bool) -> Self { matches .value_of(output_name) .map(|value| match value {