From 84e2e173eeb84551832a0853f8a3717144640908 Mon Sep 17 00:00:00 2001 From: Michal Terepeta Date: Fri, 3 Jan 2020 12:33:48 +0100 Subject: [PATCH] Remove a duplicate line in `collect_defs` Signed-off-by: Michal Terepeta --- crates/ra_hir_def/src/nameres/collector.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/crates/ra_hir_def/src/nameres/collector.rs b/crates/ra_hir_def/src/nameres/collector.rs index 8a22b058591..35b852ee21c 100644 --- a/crates/ra_hir_def/src/nameres/collector.rs +++ b/crates/ra_hir_def/src/nameres/collector.rs @@ -45,7 +45,6 @@ pub(super) fn collect_defs(db: &impl DefDatabase, mut def_map: CrateDefMap) -> C // If the dependency defines a prelude, we overwrite an already defined // prelude. This is necessary to import the "std" prelude if a crate // depends on both "core" and "std". - let dep_def_map = db.crate_def_map(dep.crate_id); if dep_def_map.prelude.is_some() { def_map.prelude = dep_def_map.prelude; }