diff options
author | Aleksey Kladov <[email protected]> | 2019-04-08 23:06:30 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-04-09 08:26:51 +0100 |
commit | faf526e021e09770cae28f8d7c8ee88a54d6574d (patch) | |
tree | 9fb5bbab15472c7d5b870a65c0ec34256b13c428 /crates/ra_syntax/src/lib.rs | |
parent | ac6ab0758731d0555fbf1b1a918abd3e12c8169d (diff) |
migrate to untyped rowan
Diffstat (limited to 'crates/ra_syntax/src/lib.rs')
-rw-r--r-- | crates/ra_syntax/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_syntax/src/lib.rs b/crates/ra_syntax/src/lib.rs index c56bc9f16..a6ce14f06 100644 --- a/crates/ra_syntax/src/lib.rs +++ b/crates/ra_syntax/src/lib.rs | |||
@@ -79,7 +79,7 @@ impl SourceFile { | |||
79 | } | 79 | } |
80 | 80 | ||
81 | pub fn errors(&self) -> Vec<SyntaxError> { | 81 | pub fn errors(&self) -> Vec<SyntaxError> { |
82 | let mut errors = self.syntax.root_data().clone(); | 82 | let mut errors = self.syntax.root_data().to_vec(); |
83 | errors.extend(validation::validate(self)); | 83 | errors.extend(validation::validate(self)); |
84 | errors | 84 | errors |
85 | } | 85 | } |