aboutsummaryrefslogtreecommitdiff
path: root/macros/src/factory/declare_default_args.rs
diff options
context:
space:
mode:
Diffstat (limited to 'macros/src/factory/declare_default_args.rs')
-rw-r--r--macros/src/factory/declare_default_args.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/macros/src/factory/declare_default_args.rs b/macros/src/factory/declare_default_args.rs
index 03d52bd..46185e3 100644
--- a/macros/src/factory/declare_default_args.rs
+++ b/macros/src/factory/declare_default_args.rs
@@ -47,7 +47,7 @@ impl Parse for DeclareDefaultFactoryMacroArgs
.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}'")));
}