mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
Fix some clippy lints in ide_completion
This commit is contained in:
parent
ccde0bcd1f
commit
9485d6efba
10 changed files with 34 additions and 41 deletions
|
@ -139,7 +139,7 @@ fn visible_fields(
|
|||
let module = ctx.completion.scope.module()?;
|
||||
let n_fields = fields.len();
|
||||
let fields = fields
|
||||
.into_iter()
|
||||
.iter()
|
||||
.filter(|field| field.is_visible_from(ctx.db(), module))
|
||||
.copied()
|
||||
.collect::<Vec<_>>();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue