Skip to content

Commit

Permalink
refactor(cli): Use new clap::ErrorKind location
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Sep 20, 2022
1 parent 0a78364 commit b00b59d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cargo/util/command_prelude.rs
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ pub trait ArgMatchesExt {
None => None,
Some(arg) => Some(arg.parse::<u32>().map_err(|_| {
clap::Error::raw(
clap::ErrorKind::ValueValidation,
clap::error::ErrorKind::ValueValidation,
format!("Invalid value: could not parse `{}` as a number", arg),
)
})?),
Expand All @@ -332,7 +332,7 @@ pub trait ArgMatchesExt {
None => None,
Some(arg) => Some(arg.parse::<i32>().map_err(|_| {
clap::Error::raw(
clap::ErrorKind::ValueValidation,
clap::error::ErrorKind::ValueValidation,
format!("Invalid value: could not parse `{}` as a number", arg),
)
})?),
Expand Down

0 comments on commit b00b59d

Please sign in to comment.