diff options
author | Aleksey Kladov <[email protected]> | 2019-11-25 14:30:50 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-11-25 14:50:49 +0000 |
commit | 5fd68b592938b6a4c074146c1b22ea0f6908fe26 (patch) | |
tree | 3403f802366b9ddf9c9e1c1ff59af3d81e476ad1 /crates/ra_hir/src/ty.rs | |
parent | e1c0bdaf75f8d88a5c28b3e44def17d91d4f46b3 (diff) |
Fix hir for ast::UnionDef
Diffstat (limited to 'crates/ra_hir/src/ty.rs')
-rw-r--r-- | crates/ra_hir/src/ty.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir/src/ty.rs b/crates/ra_hir/src/ty.rs index 8c045aaef..3cbcbd1d0 100644 --- a/crates/ra_hir/src/ty.rs +++ b/crates/ra_hir/src/ty.rs | |||
@@ -858,7 +858,7 @@ impl HirDisplay for ApplicationTy { | |||
858 | let name = match def { | 858 | let name = match def { |
859 | CallableDef::FunctionId(ff) => f.db.function_data(ff).name.clone(), | 859 | CallableDef::FunctionId(ff) => f.db.function_data(ff).name.clone(), |
860 | CallableDef::StructId(s) => { | 860 | CallableDef::StructId(s) => { |
861 | f.db.struct_data(s.0).name.clone().unwrap_or_else(Name::missing) | 861 | f.db.struct_data(s).name.clone().unwrap_or_else(Name::missing) |
862 | } | 862 | } |
863 | CallableDef::EnumVariantId(e) => { | 863 | CallableDef::EnumVariantId(e) => { |
864 | let enum_data = f.db.enum_data(e.parent); | 864 | let enum_data = f.db.enum_data(e.parent); |