mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
add field_reassign_with_default ignore
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
This commit is contained in:
co-authored by
Daniel Hofstetter
parent
3a780453a9
commit
f8436728dc
@@ -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,
|
||||
/// 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> {
|
||||
let keys = get_and_parse_field_number(matches, "j")?;
|
||||
let key1 = get_and_parse_field_number(matches, "1")?;
|
||||
|
||||
Reference in New Issue
Block a user