aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/nameres.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir/src/nameres.rs')
-rw-r--r--crates/ra_hir/src/nameres.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_hir/src/nameres.rs b/crates/ra_hir/src/nameres.rs
index e35b4b129..bd920bfea 100644
--- a/crates/ra_hir/src/nameres.rs
+++ b/crates/ra_hir/src/nameres.rs
@@ -348,7 +348,7 @@ where
348 .into_iter() 348 .into_iter()
349 .filter_map(|variant| { 349 .filter_map(|variant| {
350 let res = Resolution { 350 let res = Resolution {
351 def: PerNs::both(variant.into(), e.into()), 351 def: PerNs::both(variant.into(), variant.into()),
352 import: Some(import_id), 352 import: Some(import_id),
353 }; 353 };
354 let name = variant.name(self.db)?; 354 let name = variant.name(self.db)?;
@@ -628,7 +628,7 @@ impl ItemMap {
628 // enum variant 628 // enum variant
629 tested_by!(item_map_enum_importing); 629 tested_by!(item_map_enum_importing);
630 match e.variant(db, &segment.name) { 630 match e.variant(db, &segment.name) {
631 Some(variant) => PerNs::both(variant.into(), (*e).into()), 631 Some(variant) => PerNs::both(variant.into(), variant.into()),
632 None => PerNs::none(), 632 None => PerNs::none(),
633 } 633 }
634 } 634 }