diff options
author | Aleksey Kladov <[email protected]> | 2019-11-27 13:25:01 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-11-27 13:25:01 +0000 |
commit | 9fa46ff5c67bd1809cc748f6fc0e93d7c9be3fdb (patch) | |
tree | 8a6e1440ae2efc86a53aa77f65bdfad6cff00b0d /crates/ra_hir/src/code_model.rs | |
parent | 17680f6060be1abe8f021538aeff0a95e9c569da (diff) |
Use Id for variats
Diffstat (limited to 'crates/ra_hir/src/code_model.rs')
-rw-r--r-- | crates/ra_hir/src/code_model.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/crates/ra_hir/src/code_model.rs b/crates/ra_hir/src/code_model.rs index 0e987240a..52ad4e5d1 100644 --- a/crates/ra_hir/src/code_model.rs +++ b/crates/ra_hir/src/code_model.rs | |||
@@ -534,14 +534,6 @@ impl VariantDef { | |||
534 | } | 534 | } |
535 | } | 535 | } |
536 | 536 | ||
537 | pub(crate) fn field(self, db: &impl HirDatabase, name: &Name) -> Option<StructField> { | ||
538 | match self { | ||
539 | VariantDef::Struct(it) => it.field(db, name), | ||
540 | VariantDef::Union(it) => it.field(db, name), | ||
541 | VariantDef::EnumVariant(it) => it.field(db, name), | ||
542 | } | ||
543 | } | ||
544 | |||
545 | pub fn module(self, db: &impl HirDatabase) -> Module { | 537 | pub fn module(self, db: &impl HirDatabase) -> Module { |
546 | match self { | 538 | match self { |
547 | VariantDef::Struct(it) => it.module(db), | 539 | VariantDef::Struct(it) => it.module(db), |