Skip to content

Commit

Permalink
fix: Fix duplicate flag span
Browse files Browse the repository at this point in the history
  • Loading branch information
ysthakur committed Dec 26, 2023
1 parent 065d0e7 commit e486366
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parse_deser/kdl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ fn parse_flag(
if let Some(prev_span) = flag_spans.get(&flag) {
return Err(ParseError::DuplicateFlag {
flag,
span: *node.name().span(),
span: *flag_entry.span(),
prev_span: *prev_span,
});
}
Expand Down

0 comments on commit e486366

Please sign in to comment.