diff options
-rw-r--r-- | crates/ra_ide/src/references.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_ide/src/references.rs b/crates/ra_ide/src/references.rs index 6e2bf4ded..3ea0ac230 100644 --- a/crates/ra_ide/src/references.rs +++ b/crates/ra_ide/src/references.rs | |||
@@ -95,7 +95,7 @@ pub(crate) fn find_all_refs( | |||
95 | let syntax = sema.parse(position.file_id).syntax().clone(); | 95 | let syntax = sema.parse(position.file_id).syntax().clone(); |
96 | 96 | ||
97 | let (opt_name, search_kind) = | 97 | let (opt_name, search_kind) = |
98 | if let Some(name) = get_struct_def_name_for_struc_litetal_search(&syntax, position) { | 98 | if let Some(name) = get_struct_def_name_for_struct_literal_search(&syntax, position) { |
99 | (Some(name), ReferenceKind::StructLiteral) | 99 | (Some(name), ReferenceKind::StructLiteral) |
100 | } else { | 100 | } else { |
101 | (find_node_at_offset::<ast::Name>(&syntax, position.offset), ReferenceKind::Other) | 101 | (find_node_at_offset::<ast::Name>(&syntax, position.offset), ReferenceKind::Other) |
@@ -156,7 +156,7 @@ fn decl_access(def: &Definition, syntax: &SyntaxNode, range: TextRange) -> Optio | |||
156 | None | 156 | None |
157 | } | 157 | } |
158 | 158 | ||
159 | fn get_struct_def_name_for_struc_litetal_search( | 159 | fn get_struct_def_name_for_struct_literal_search( |
160 | syntax: &SyntaxNode, | 160 | syntax: &SyntaxNode, |
161 | position: FilePosition, | 161 | position: FilePosition, |
162 | ) -> Option<ast::Name> { | 162 | ) -> Option<ast::Name> { |