Skip to content

Commit

Permalink
Skip a redundant Member clone
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Sep 5, 2021
1 parent 19a15cb commit 4b581e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion impl/src/fmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ impl Display<'_> {
let mut named_args = explicit_named_args.parse2(raw_args).unwrap();
let mut member_index = Map::new();
for (i, field) in fields.iter().enumerate() {
member_index.insert(field.member.clone(), i);
member_index.insert(&field.member, i);
}

let span = self.fmt.span();
Expand Down

0 comments on commit 4b581e3

Please sign in to comment.