Fix some clippy lints in ide_completion

This commit is contained in:
Lukas Wirth 2021-07-21 19:50:28 +02:00
parent ccde0bcd1f
commit 9485d6efba
10 changed files with 34 additions and 41 deletions

View file

@ -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<_>>();