mirror of
https://github.com/uutils/coreutils
synced 2024-12-13 23:02:38 +00:00
nl: fix redundant clone (clippy warning)
This commit is contained in:
parent
8772eb66b1
commit
bd43a7ed99
1 changed files with 3 additions and 3 deletions
|
@ -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::<String>(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::<String>(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::<usize>(options::NUMBER_WIDTH) {
|
||||
None => {}
|
||||
|
|
Loading…
Reference in a new issue