diff options
author | Aleksey Kladov <[email protected]> | 2019-07-19 19:41:36 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-07-19 19:41:36 +0100 |
commit | d92a88bf09e89575710915eeec1541bea8df4e88 (patch) | |
tree | 7546061affcf551243a810c2f81a9918a8441515 /crates/ra_syntax/src/syntax_node.rs | |
parent | 002529937075bd69d7f71483d798d6e4f43d1de9 (diff) |
remove lifetime from syntax node text
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> { |