diff options
author | Aleksey Kladov <[email protected]> | 2018-10-02 15:50:56 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-10-02 15:50:56 +0100 |
commit | dccaa5e45e9baaa2d286353a7499a89af1669e42 (patch) | |
tree | e2add892ee4324dcb5b6e7f370b5e27b0199d9da /crates | |
parent | 7ffc114dab6d1e25ead195a5937cd4f9ca51ef2c (diff) |
use aliases
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ra_syntax/src/yellow/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_syntax/src/yellow/mod.rs b/crates/ra_syntax/src/yellow/mod.rs index c621b1d6a..2c57d8b41 100644 --- a/crates/ra_syntax/src/yellow/mod.rs +++ b/crates/ra_syntax/src/yellow/mod.rs | |||
@@ -53,12 +53,12 @@ impl<R: TreeRoot<RaTypes>> Hash for SyntaxNode<R> { | |||
53 | } | 53 | } |
54 | } | 54 | } |
55 | 55 | ||
56 | impl SyntaxNode<OwnedRoot> { | 56 | impl SyntaxNode { |
57 | pub(crate) fn new(green: GreenNode, errors: Vec<SyntaxError>) -> SyntaxNode { | 57 | pub(crate) fn new(green: GreenNode, errors: Vec<SyntaxError>) -> SyntaxNode { |
58 | SyntaxNode(::rowan::SyntaxNode::new(green, errors)) | 58 | SyntaxNode(::rowan::SyntaxNode::new(green, errors)) |
59 | } | 59 | } |
60 | } | 60 | } |
61 | impl<'a> SyntaxNode<RefRoot<'a>> { | 61 | impl<'a> SyntaxNodeRef<'a> { |
62 | pub fn leaf_text(self) -> Option<&'a SmolStr> { | 62 | pub fn leaf_text(self) -> Option<&'a SmolStr> { |
63 | self.0.leaf_text() | 63 | self.0.leaf_text() |
64 | } | 64 | } |