diff options
author | Aleksey Kladov <[email protected]> | 2019-11-24 14:00:10 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-11-24 14:36:06 +0000 |
commit | 99af523b68d3056c0ee355821b9b8f3c6fb5f504 (patch) | |
tree | af350966c71287e4531fb80897b26699f560a6a6 /crates/ra_hir/src | |
parent | 326f066aa21ed2f40f064d0a6c1bdf7d519bfd7b (diff) |
Cleanup
Diffstat (limited to 'crates/ra_hir/src')
-rw-r--r-- | crates/ra_hir/src/code_model.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir/src/code_model.rs b/crates/ra_hir/src/code_model.rs index 905bb5bcb..b3e2ff1c2 100644 --- a/crates/ra_hir/src/code_model.rs +++ b/crates/ra_hir/src/code_model.rs | |||
@@ -1037,7 +1037,7 @@ impl From<PerNs> for ScopeDef { | |||
1037 | .or_else(|| def.take_values()) | 1037 | .or_else(|| def.take_values()) |
1038 | .map(|module_def_id| ScopeDef::ModuleDef(module_def_id.into())) | 1038 | .map(|module_def_id| ScopeDef::ModuleDef(module_def_id.into())) |
1039 | .or_else(|| { | 1039 | .or_else(|| { |
1040 | def.get_macros().map(|macro_def_id| ScopeDef::MacroDef(macro_def_id.into())) | 1040 | def.take_macros().map(|macro_def_id| ScopeDef::MacroDef(macro_def_id.into())) |
1041 | }) | 1041 | }) |
1042 | .unwrap_or(ScopeDef::Unknown) | 1042 | .unwrap_or(ScopeDef::Unknown) |
1043 | } | 1043 | } |