mirror of
https://github.com/clap-rs/clap
synced 2024-09-21 06:41:54 +00:00
Correct replacement function for Parser::from_clap
This commit is contained in:
parent
252dec02d9
commit
ae55a9da68
1 changed files with 1 additions and 1 deletions
|
@ -168,7 +168,7 @@ pub trait Parser: FromArgMatches + IntoApp + Sized {
|
|||
/// [`Parser`])
|
||||
#[deprecated(
|
||||
since = "3.0.0",
|
||||
note = "`StructOpt::clap` is replaced with `IntoApp::into_app` (derived as part of `Parser`)"
|
||||
note = "`StructOpt::from_clap` is replaced with `FromArgMatches::from_arg_matches` (derived as part of `Parser`)"
|
||||
)]
|
||||
fn from_clap(matches: &ArgMatches) -> Self {
|
||||
<Self as FromArgMatches>::from_arg_matches(matches).unwrap()
|
||||
|
|
Loading…
Reference in a new issue