Remove a duplicate line in collect_defs

Signed-off-by: Michal Terepeta <michal.terepeta@gmail.com>
This commit is contained in:
Michal Terepeta 2020-01-03 12:33:48 +01:00
parent 4516c4c144
commit 84e2e173ee

View file

@ -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 // If the dependency defines a prelude, we overwrite an already defined
// prelude. This is necessary to import the "std" prelude if a crate // prelude. This is necessary to import the "std" prelude if a crate
// depends on both "core" and "std". // depends on both "core" and "std".
let dep_def_map = db.crate_def_map(dep.crate_id);
if dep_def_map.prelude.is_some() { if dep_def_map.prelude.is_some() {
def_map.prelude = dep_def_map.prelude; def_map.prelude = dep_def_map.prelude;
} }