mirror of
https://github.com/clap-rs/clap
synced 2025-01-18 23:53:54 +00:00
Merge pull request #3257 from Tiwalun/patch-1
Correct replacement function for Parser::from_clap
This commit is contained in:
commit
690da48785
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