From bd43a7ed99d86fe0e687b90e9b8f9ef803c59997 Mon Sep 17 00:00:00 2001 From: kralo Date: Sat, 27 Jan 2024 18:27:13 +0100 Subject: [PATCH] nl: fix redundant clone (clippy warning) --- src/uu/nl/src/helper.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 => {}