diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-03-17 10:22:59 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-03-17 10:22:59 +0000 |
commit | 089c5547709bb8e7e60388c4f9a5e25c394c1f39 (patch) | |
tree | 9103029b4a307c60919faa6dba098d311dc4877a /crates/ra_ide | |
parent | 96f19c3af9353692963f89a8cd9e1783e787f57c (diff) | |
parent | cafacb74aa6a8576e381688d9a4e1056d2832e34 (diff) |
Merge #3625
3625: Fix typo r=flodiebold a=phynalle
It doesn't need any description! I just fixed a typo. haha
Co-authored-by: phynalle <[email protected]>
Diffstat (limited to 'crates/ra_ide')
-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> { |