diff options
Diffstat (limited to 'crates/ra_syntax/src/syntax_node.rs')
-rw-r--r-- | crates/ra_syntax/src/syntax_node.rs | 2 |
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 8fe9e5b4e..51bae04de 100644 --- a/crates/ra_syntax/src/syntax_node.rs +++ b/crates/ra_syntax/src/syntax_node.rs | |||
@@ -68,7 +68,7 @@ impl SyntaxNode { | |||
68 | } | 68 | } |
69 | 69 | ||
70 | pub fn text(&self) -> SyntaxText { | 70 | pub fn text(&self) -> SyntaxText { |
71 | SyntaxText::new(self) | 71 | SyntaxText::new(self.clone()) |
72 | } | 72 | } |
73 | 73 | ||
74 | pub fn parent(&self) -> Option<SyntaxNode> { | 74 | pub fn parent(&self) -> Option<SyntaxNode> { |