aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_def
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir_def')
-rw-r--r--crates/ra_hir_def/src/nameres/collector.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_hir_def/src/nameres/collector.rs b/crates/ra_hir_def/src/nameres/collector.rs
index e68bf4868..3d8ca5dce 100644
--- a/crates/ra_hir_def/src/nameres/collector.rs
+++ b/crates/ra_hir_def/src/nameres/collector.rs
@@ -406,14 +406,14 @@ where
406 let resolutions = enum_data 406 let resolutions = enum_data
407 .variants 407 .variants
408 .iter() 408 .iter()
409 .filter_map(|(local_id, variant_data)| { 409 .map(|(local_id, variant_data)| {
410 let name = variant_data.name.clone(); 410 let name = variant_data.name.clone();
411 let variant = EnumVariantId { parent: e, local_id }; 411 let variant = EnumVariantId { parent: e, local_id };
412 let res = Resolution { 412 let res = Resolution {
413 def: PerNs::both(variant.into(), variant.into()), 413 def: PerNs::both(variant.into(), variant.into()),
414 import: Some(import_id), 414 import: Some(import_id),
415 }; 415 };
416 Some((name, res)) 416 (name, res)
417 }) 417 })
418 .collect::<Vec<_>>(); 418 .collect::<Vec<_>>();
419 self.update(module_id, Some(import_id), &resolutions); 419 self.update(module_id, Some(import_id), &resolutions);