diff options
author | Michal Terepeta <[email protected]> | 2020-01-03 11:33:48 +0000 |
---|---|---|
committer | Michal Terepeta <[email protected]> | 2020-01-03 11:40:50 +0000 |
commit | 84e2e173eeb84551832a0853f8a3717144640908 (patch) | |
tree | 8d5bf0726004c76e2fedd068f6f2c3ce30b3322c /crates/ra_hir_def | |
parent | 4516c4c1447942a8f01b59a71dcf5abfa2c5e37a (diff) |
Remove a duplicate line in `collect_defs`
Signed-off-by: Michal Terepeta <[email protected]>
Diffstat (limited to 'crates/ra_hir_def')
-rw-r--r-- | crates/ra_hir_def/src/nameres/collector.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/crates/ra_hir_def/src/nameres/collector.rs b/crates/ra_hir_def/src/nameres/collector.rs index 8a22b0585..35b852ee2 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 | |||
45 | // If the dependency defines a prelude, we overwrite an already defined | 45 | // If the dependency defines a prelude, we overwrite an already defined |
46 | // prelude. This is necessary to import the "std" prelude if a crate | 46 | // prelude. This is necessary to import the "std" prelude if a crate |
47 | // depends on both "core" and "std". | 47 | // depends on both "core" and "std". |
48 | let dep_def_map = db.crate_def_map(dep.crate_id); | ||
49 | if dep_def_map.prelude.is_some() { | 48 | if dep_def_map.prelude.is_some() { |
50 | def_map.prelude = dep_def_map.prelude; | 49 | def_map.prelude = dep_def_map.prelude; |
51 | } | 50 | } |