diff options
Diffstat (limited to 'crates/ra_ide_api/src/matching_brace.rs')
-rw-r--r-- | crates/ra_ide_api/src/matching_brace.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_ide_api/src/matching_brace.rs b/crates/ra_ide_api/src/matching_brace.rs index 102327fd7..1e2fac848 100644 --- a/crates/ra_ide_api/src/matching_brace.rs +++ b/crates/ra_ide_api/src/matching_brace.rs | |||
@@ -12,7 +12,7 @@ pub fn matching_brace(file: &SourceFile, offset: TextUnit) -> Option<TextUnit> { | |||
12 | let parent = brace_node.parent(); | 12 | let parent = brace_node.parent(); |
13 | let matching_kind = BRACES[brace_idx ^ 1]; | 13 | let matching_kind = BRACES[brace_idx ^ 1]; |
14 | let matching_node = parent.children_with_tokens().find(|node| node.kind() == matching_kind)?; | 14 | let matching_node = parent.children_with_tokens().find(|node| node.kind() == matching_kind)?; |
15 | Some(matching_node.range().start()) | 15 | Some(matching_node.text_range().start()) |
16 | } | 16 | } |
17 | 17 | ||
18 | #[cfg(test)] | 18 | #[cfg(test)] |