Skip to content

Commit

Permalink
Clean up unneeded var
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Nov 8, 2024
1 parent 4066d53 commit a17d956
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions impl/src/fmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,8 @@ impl Display<'_> {
formatvar = IdentUnraw::new(format_ident!("_{}", formatvar.to_string()));
}
out += &formatvar.to_string();
let local = formatvar.to_local();
if macro_named_args.insert(member) {
bindings.push((local, wrapped_binding_value));
bindings.push((formatvar.to_local(), wrapped_binding_value));
} else {
// Already added to bindings by a previous use.
}
Expand Down

0 comments on commit a17d956

Please sign in to comment.