aboutsummaryrefslogtreecommitdiff
path: root/crates/libsyntax2/src/yellow/green.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/libsyntax2/src/yellow/green.rs')
-rw-r--r--crates/libsyntax2/src/yellow/green.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/crates/libsyntax2/src/yellow/green.rs b/crates/libsyntax2/src/yellow/green.rs
index 59aefb0de..dc3186a24 100644
--- a/crates/libsyntax2/src/yellow/green.rs
+++ b/crates/libsyntax2/src/yellow/green.rs
@@ -43,10 +43,6 @@ impl GreenNode {
43 } 43 }
44 } 44 }
45 45
46 pub fn leaf_text(&self) -> Option<SmolStr> {
47 self.leaf_text_ref().map(Clone::clone)
48 }
49
50 pub fn leaf_text_ref(&self) -> Option<&SmolStr> { 46 pub fn leaf_text_ref(&self) -> Option<&SmolStr> {
51 match self { 47 match self {
52 GreenNode::Leaf { text, .. } => Some(text), 48 GreenNode::Leaf { text, .. } => Some(text),