mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 14:51:48 +00:00
Fix clippy::into_iter_on_ref
This commit is contained in:
parent
619a615298
commit
fb592d76aa
3 changed files with 3 additions and 3 deletions
|
@ -57,7 +57,7 @@ impl<'a, 'b> ExprValidator<'a, 'b> {
|
|||
_ => return,
|
||||
};
|
||||
|
||||
let lit_fields: FxHashSet<_> = fields.into_iter().map(|f| &f.name).collect();
|
||||
let lit_fields: FxHashSet<_> = fields.iter().map(|f| &f.name).collect();
|
||||
let missed_fields: Vec<Name> = struct_def
|
||||
.fields(db)
|
||||
.iter()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue