diff --git a/src/uu/nl/src/helper.rs b/src/uu/nl/src/helper.rs index e617010c1..ee3f3a0a9 100644 --- a/src/uu/nl/src/helper.rs +++ b/src/uu/nl/src/helper.rs @@ -36,7 +36,7 @@ pub fn parse_options(settings: &mut crate::Settings, opts: &clap::ArgMatches) -> { None => {} Some(Ok(style)) => settings.header_numbering = style, - Some(Err(message)) => errs.push(message.to_string()), + Some(Err(message)) => errs.push(message), } match opts .get_one::(options::BODY_NUMBERING) @@ -45,7 +45,7 @@ pub fn parse_options(settings: &mut crate::Settings, opts: &clap::ArgMatches) -> { None => {} Some(Ok(style)) => settings.body_numbering = style, - Some(Err(message)) => errs.push(message.to_string()), + Some(Err(message)) => errs.push(message), } match opts .get_one::(options::FOOTER_NUMBERING) @@ -54,7 +54,7 @@ pub fn parse_options(settings: &mut crate::Settings, opts: &clap::ArgMatches) -> { None => {} Some(Ok(style)) => settings.footer_numbering = style, - Some(Err(message)) => errs.push(message.to_string()), + Some(Err(message)) => errs.push(message), } match opts.get_one::(options::NUMBER_WIDTH) { None => {}