mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 12:07:46 +00:00
add field_reassign_with_default ignore
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
This commit is contained in:
parent
3a780453a9
commit
f8436728dc
1 changed files with 1 additions and 0 deletions
|
@ -647,6 +647,7 @@ fn get_and_parse_field_number(matches: &clap::ArgMatches, key: &str) -> UResult<
|
||||||
///
|
///
|
||||||
/// This function takes the matches from the command-line arguments, processes them,
|
/// This function takes the matches from the command-line arguments, processes them,
|
||||||
/// and returns a `Settings` struct that encapsulates the configuration for the program.
|
/// and returns a `Settings` struct that encapsulates the configuration for the program.
|
||||||
|
#[allow(clippy::field_reassign_with_default)]
|
||||||
fn parse_settings(matches: &clap::ArgMatches) -> UResult<Settings> {
|
fn parse_settings(matches: &clap::ArgMatches) -> UResult<Settings> {
|
||||||
let keys = get_and_parse_field_number(matches, "j")?;
|
let keys = get_and_parse_field_number(matches, "j")?;
|
||||||
let key1 = get_and_parse_field_number(matches, "1")?;
|
let key1 = get_and_parse_field_number(matches, "1")?;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue