aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/syntax_node.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_syntax/src/syntax_node.rs')
-rw-r--r--crates/ra_syntax/src/syntax_node.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_syntax/src/syntax_node.rs b/crates/ra_syntax/src/syntax_node.rs
index 80c8639c8..a1f9a59b6 100644
--- a/crates/ra_syntax/src/syntax_node.rs
+++ b/crates/ra_syntax/src/syntax_node.rs
@@ -357,7 +357,7 @@ impl SyntaxNode {
357 // `range` private afterwards 357 // `range` private afterwards
358 let mut ptr = SyntaxNodePtr::new(self); 358 let mut ptr = SyntaxNodePtr::new(self);
359 ptr.range = TextRange::offset_len(ptr.range().start(), len); 359 ptr.range = TextRange::offset_len(ptr.range().start(), len);
360 return ptr.to_node(file.syntax()).to_owned(); 360 ptr.to_node(file.syntax()).to_owned()
361 } 361 }
362 362
363 fn position_of_child(&self, child: SyntaxElement) -> usize { 363 fn position_of_child(&self, child: SyntaxElement) -> usize {