From ae55a9da684e3877f95beca39c959754855039e1 Mon Sep 17 00:00:00 2001 From: Dominik Boehi Date: Tue, 4 Jan 2022 22:29:39 +0100 Subject: [PATCH] Correct replacement function for Parser::from_clap --- src/derive.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/derive.rs b/src/derive.rs index 225b5d1d3ca..eab1feb0f8d 100644 --- a/src/derive.rs +++ b/src/derive.rs @@ -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 { ::from_arg_matches(matches).unwrap()