summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Knaack <davidkna@users.noreply.github.com>2022-06-15 23:31:12 +0200
committerGitHub <noreply@github.com>2022-06-15 23:31:12 +0200
commit009eb93c831cdc176da5d378767b8f8e1e419622 (patch)
treee47db98fc76a71ce7840955de3b668fbe4f16ebc /src
parent09bbea81977beb94f5428e3e4e784a581afe7921 (diff)
build: bump clap crates to v3.2 (#4067)
Diffstat (limited to 'src')
-rw-r--r--src/context.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/context.rs b/src/context.rs
index 11dd57aae..00415d8d6 100644
--- a/src/context.rs
+++ b/src/context.rs
@@ -606,7 +606,7 @@ pub struct Properties {
#[clap(long, value_delimiter = ' ')]
pub pipestatus: Option<Vec<String>>,
/// The width of the current interactive terminal.
- #[clap(short = 'w', long, default_value_t=default_width(), parse(try_from_str=parse_width))]
+ #[clap(short = 'w', long, default_value_t=default_width(), value_parser=parse_width)]
terminal_width: usize,
/// The path that the prompt should render for.
#[clap(short, long)]
@@ -622,7 +622,7 @@ pub struct Properties {
#[clap(short = 'k', long, default_value = "viins")]
pub keymap: String,
/// The number of currently running jobs
- #[clap(short, long, default_value_t, parse(try_from_str=parse_jobs))]
+ #[clap(short, long, default_value_t, value_parser=parse_jobs)]
pub jobs: i64,
}