diff --git a/src/build/app/mod.rs b/src/build/app/mod.rs index 32dc75a37a72..22136f7a4c46 100644 --- a/src/build/app/mod.rs +++ b/src/build/app/mod.rs @@ -896,8 +896,8 @@ impl<'help> App<'help> { /// .about("Does really amazing things for great people") /// # ; /// ``` - pub fn about>(mut self, about: S) -> Self { - self.about = Some(about.into()); + pub fn about>>(mut self, about: O) -> Self { + self.about = about.into(); self } @@ -920,8 +920,8 @@ impl<'help> App<'help> { /// # ; /// ``` /// [`App::about`]: App::about() - pub fn long_about>(mut self, about: S) -> Self { - self.long_about = Some(about.into()); + pub fn long_about>>(mut self, long_about: O) -> Self { + self.long_about = long_about.into(); self } diff --git a/src/build/arg/mod.rs b/src/build/arg/mod.rs index 539ec685b048..ff9d05ed7aed 100644 --- a/src/build/arg/mod.rs +++ b/src/build/arg/mod.rs @@ -2712,8 +2712,8 @@ impl<'help> Arg<'help> { /// ``` /// [`Arg::long_help`]: Arg::long_help() #[inline] - pub fn help(mut self, h: &'help str) -> Self { - self.help = Some(h); + pub fn help(mut self, h: impl Into>) -> Self { + self.help = h.into(); self } @@ -2773,8 +2773,8 @@ impl<'help> Arg<'help> { /// ``` /// [`Arg::help`]: Arg::help() #[inline] - pub fn long_help(mut self, h: &'help str) -> Self { - self.long_help = Some(h); + pub fn long_help(mut self, h: impl Into>) -> Self { + self.long_help = h.into(); self }