Skip to content

Commit

Permalink
Correct replacement function for Parser::from_clap
Browse files Browse the repository at this point in the history
  • Loading branch information
Tiwalun authored Jan 4, 2022
1 parent 252dec0 commit ae55a9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/derive.rs
Original file line number Diff line number Diff line change
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 ae55a9d

Please sign in to comment.