Skip to content

Commit

Permalink
Merge pull request #3257 from Tiwalun/patch-1
Browse files Browse the repository at this point in the history
Correct replacement function for Parser::from_clap
  • Loading branch information
epage committed Jan 4, 2022
2 parents 252dec0 + ae55a9d commit 690da48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/derive.rs
Expand Up @@ -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()
Expand Down

0 comments on commit 690da48

Please sign in to comment.