diff options
author | Aleksey Kladov <[email protected]> | 2019-11-24 17:06:55 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-11-24 17:06:55 +0000 |
commit | 63e3ea38d3ff7ab69b968e8962f33e82a4f978fb (patch) | |
tree | 8f4d416bad74f75e43924981b1d2c2099ea50edc /crates/ra_hir/src/code_model.rs | |
parent | ac9ba5eb32073c16608acaa04324e7dc46d303d6 (diff) |
Don't redo field resolution in the IDE
Diffstat (limited to 'crates/ra_hir/src/code_model.rs')
-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 9f06b147c..a98f2f247 100644 --- a/crates/ra_hir/src/code_model.rs +++ b/crates/ra_hir/src/code_model.rs | |||
@@ -510,7 +510,7 @@ impl VariantDef { | |||
510 | } | 510 | } |
511 | } | 511 | } |
512 | 512 | ||
513 | pub fn field(self, db: &impl HirDatabase, name: &Name) -> Option<StructField> { | 513 | pub(crate) fn field(self, db: &impl HirDatabase, name: &Name) -> Option<StructField> { |
514 | match self { | 514 | match self { |
515 | VariantDef::Struct(it) => it.field(db, name), | 515 | VariantDef::Struct(it) => it.field(db, name), |
516 | VariantDef::EnumVariant(it) => it.field(db, name), | 516 | VariantDef::EnumVariant(it) => it.field(db, name), |