aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api/src/matching_brace.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-07-19 10:56:47 +0100
committerAleksey Kladov <[email protected]>2019-07-19 11:16:25 +0100
commitf1abc7bdc63fedd5a699b4c495bb23f1b6d254f9 (patch)
tree9518c43f5ddeaa38426efddc17be19af5381f003 /crates/ra_ide_api/src/matching_brace.rs
parent0343c4a815a0e82d5e55e76a01d21b0f7a00ff5b (diff)
migrate ra_ide_api to the new rowan
Diffstat (limited to 'crates/ra_ide_api/src/matching_brace.rs')
-rw-r--r--crates/ra_ide_api/src/matching_brace.rs2
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 455a5c891..102327fd7 100644
--- a/crates/ra_ide_api/src/matching_brace.rs
+++ b/crates/ra_ide_api/src/matching_brace.rs
@@ -26,7 +26,7 @@ mod tests {
26 fn do_check(before: &str, after: &str) { 26 fn do_check(before: &str, after: &str) {
27 let (pos, before) = extract_offset(before); 27 let (pos, before) = extract_offset(before);
28 let parse = SourceFile::parse(&before); 28 let parse = SourceFile::parse(&before);
29 let new_pos = match matching_brace(parse.tree(), pos) { 29 let new_pos = match matching_brace(&parse.tree(), pos) {
30 None => pos, 30 None => pos,
31 Some(pos) => pos, 31 Some(pos) => pos,
32 }; 32 };