1
Fork 0
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:
Sylvestre Ledru 2023-10-16 10:47:38 +02:00 committed by GitHub
parent 3a780453a9
commit f8436728dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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")?;