diff options
Diffstat (limited to 'macros/src/factory/macro_args.rs')
-rw-r--r-- | macros/src/factory/macro_args.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/macros/src/factory/macro_args.rs b/macros/src/factory/macro_args.rs index bd09cdf..64d6e12 100644 --- a/macros/src/factory/macro_args.rs +++ b/macros/src/factory/macro_args.rs @@ -35,7 +35,7 @@ impl Parse for FactoryMacroArgs .map(|flag| flag.flag.to_string()) .collect::<Vec<_>>(); - if let Some(dupe_flag_name) = flag_names.iter().find_duplicate() { + if let Some((dupe_flag_name, _)) = flag_names.iter().find_duplicate() { return Err(input.error(format!("Duplicate flag '{dupe_flag_name}'"))); } |