aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphynalle <[email protected]>2020-03-17 10:15:30 +0000
committerphynalle <[email protected]>2020-03-17 10:15:30 +0000
commitcafacb74aa6a8576e381688d9a4e1056d2832e34 (patch)
treed66f849b16a8646f77c37abd1ce9b59b70238fa9
parent6aa432d86b7e4fb691600032ebdf6f2301152447 (diff)
Fix typo
-rw-r--r--crates/ra_ide/src/references.rs4
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
159fn get_struct_def_name_for_struc_litetal_search( 159fn 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> {