From 1ef55002c2db4ca68df31306290b019c7fbfb4fb Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Sat, 27 Mar 2021 21:51:00 +0100 Subject: Cleanup ide_db imports --- crates/ide_db/src/traits.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'crates/ide_db/src/traits.rs') diff --git a/crates/ide_db/src/traits.rs b/crates/ide_db/src/traits.rs index 78a43f587..66ae81c73 100644 --- a/crates/ide_db/src/traits.rs +++ b/crates/ide_db/src/traits.rs @@ -61,7 +61,7 @@ pub fn get_missing_assoc_items( resolve_target_trait(sema, impl_def).map_or(vec![], |target_trait| { target_trait .items(sema.db) - .iter() + .into_iter() .filter(|i| match i { hir::AssocItem::Function(f) => { !impl_fns_consts.contains(&f.name(sema.db).to_string()) @@ -72,7 +72,6 @@ pub fn get_missing_assoc_items( .map(|n| !impl_fns_consts.contains(&n.to_string())) .unwrap_or_default(), }) - .cloned() .collect() }) } -- cgit v1.2.3