Skip to content

Commit

Permalink
Api needs to also give ArcBorrow<Node>
Browse files Browse the repository at this point in the history
  • Loading branch information
CAD97 committed Apr 29, 2020
1 parent a8a3f1c commit abfc301
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ impl<L: Language> SyntaxNode<L> {
self.raw.text()
}

pub fn green(&self) -> &GreenNode {
ArcBorrow::downgrade(self.raw.green())
pub fn green(&self) -> ArcBorrow<'_, GreenNode> {
self.raw.green()
}

pub fn parent(&self) -> Option<SyntaxNode<L>> {
Expand Down

0 comments on commit abfc301

Please sign in to comment.