diff options
Diffstat (limited to 'crates/ra_ide')
-rw-r--r-- | crates/ra_ide/src/display.rs | 2 | ||||
-rw-r--r-- | crates/ra_ide/src/file_structure.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_ide/src/display.rs b/crates/ra_ide/src/display.rs index 3efca0649..fd42aa435 100644 --- a/crates/ra_ide/src/display.rs +++ b/crates/ra_ide/src/display.rs | |||
@@ -44,7 +44,7 @@ pub(crate) fn function_declaration(node: &ast::Fn) -> String { | |||
44 | format_to!(buf, "{}", param_list); | 44 | format_to!(buf, "{}", param_list); |
45 | } | 45 | } |
46 | if let Some(ret_type) = node.ret_type() { | 46 | if let Some(ret_type) = node.ret_type() { |
47 | if ret_type.type_ref().is_some() { | 47 | if ret_type.ty().is_some() { |
48 | format_to!(buf, " {}", ret_type); | 48 | format_to!(buf, " {}", ret_type); |
49 | } | 49 | } |
50 | } | 50 | } |
diff --git a/crates/ra_ide/src/file_structure.rs b/crates/ra_ide/src/file_structure.rs index 22cf8637a..91765140a 100644 --- a/crates/ra_ide/src/file_structure.rs +++ b/crates/ra_ide/src/file_structure.rs | |||
@@ -125,7 +125,7 @@ fn structure_node(node: &SyntaxNode) -> Option<StructureNode> { | |||
125 | ast::Variant(it) => decl(it), | 125 | ast::Variant(it) => decl(it), |
126 | ast::Trait(it) => decl(it), | 126 | ast::Trait(it) => decl(it), |
127 | ast::Module(it) => decl(it), | 127 | ast::Module(it) => decl(it), |
128 | ast::TypeAlias(it) => decl_with_type_ref(&it, it.type_ref()), | 128 | ast::TypeAlias(it) => decl_with_type_ref(&it, it.ty()), |
129 | ast::RecordField(it) => decl_with_type_ref(&it, it.ty()), | 129 | ast::RecordField(it) => decl_with_type_ref(&it, it.ty()), |
130 | ast::Const(it) => decl_with_type_ref(&it, it.ty()), | 130 | ast::Const(it) => decl_with_type_ref(&it, it.ty()), |
131 | ast::Static(it) => decl_with_type_ref(&it, it.ty()), | 131 | ast::Static(it) => decl_with_type_ref(&it, it.ty()), |