aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/ra_tt/src/buffer.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_tt/src/buffer.rs b/crates/ra_tt/src/buffer.rs
index 8bc6390f3..995c9f90b 100644
--- a/crates/ra_tt/src/buffer.rs
+++ b/crates/ra_tt/src/buffer.rs
@@ -141,7 +141,7 @@ impl<'a> Cursor<'a> {
141 } 141 }
142 142
143 /// If the cursor is pointing at a `TokenTree`, returns it 143 /// If the cursor is pointing at a `TokenTree`, returns it
144 pub fn token_tree(self) -> Option<(&'a TokenTree)> { 144 pub fn token_tree(self) -> Option<&'a TokenTree> {
145 match self.entry() { 145 match self.entry() {
146 Some(Entry::Leaf(tt)) => Some(tt), 146 Some(Entry::Leaf(tt)) => Some(tt),
147 Some(Entry::Subtree(tt, _)) => Some(tt), 147 Some(Entry::Subtree(tt, _)) => Some(tt),