diff options
author | Aleksey Kladov <[email protected]> | 2018-08-17 20:03:55 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-08-17 20:03:55 +0100 |
commit | c7b1be6be345f97d6c4fd9ff3c51a94fb817fa56 (patch) | |
tree | 123b895ad8b2797b3b6ebcceebd36fb375ec7a38 /crates/libsyntax2/src/ast | |
parent | d3c90ded2b9a4f75e101fa3abc60cd3aebc439c9 (diff) |
Owned
Diffstat (limited to 'crates/libsyntax2/src/ast')
-rw-r--r-- | crates/libsyntax2/src/ast/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/libsyntax2/src/ast/mod.rs b/crates/libsyntax2/src/ast/mod.rs index 46509b5ec..5b9a07db4 100644 --- a/crates/libsyntax2/src/ast/mod.rs +++ b/crates/libsyntax2/src/ast/mod.rs | |||
@@ -46,7 +46,7 @@ impl ParsedFile { | |||
46 | File::cast(self.syntax()).unwrap() | 46 | File::cast(self.syntax()).unwrap() |
47 | } | 47 | } |
48 | pub fn syntax(&self) -> SyntaxNodeRef { | 48 | pub fn syntax(&self) -> SyntaxNodeRef { |
49 | self.root.as_ref() | 49 | self.root.borrowed() |
50 | } | 50 | } |
51 | pub fn errors(&self) -> Vec<SyntaxError> { | 51 | pub fn errors(&self) -> Vec<SyntaxError> { |
52 | self.syntax().root.syntax_root().errors.clone() | 52 | self.syntax().root.syntax_root().errors.clone() |