aboutsummaryrefslogtreecommitdiff
path: root/crates/tt
diff options
context:
space:
mode:
Diffstat (limited to 'crates/tt')
-rw-r--r--crates/tt/src/buffer.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/crates/tt/src/buffer.rs b/crates/tt/src/buffer.rs
index 3606c887d..e0021039a 100644
--- a/crates/tt/src/buffer.rs
+++ b/crates/tt/src/buffer.rs
@@ -1,5 +1,6 @@
1//! FIXME: write short doc here 1//! Stateful iteration over token trees.
2 2//!
3//! We use this as the source of tokens for parser.
3use crate::{Leaf, Subtree, TokenTree}; 4use crate::{Leaf, Subtree, TokenTree};
4 5
5#[derive(Copy, Clone, Debug, Eq, PartialEq)] 6#[derive(Copy, Clone, Debug, Eq, PartialEq)]
@@ -104,7 +105,7 @@ impl<'t> TokenBuffer<'t> {
104 105
105 /// Creates a cursor referencing the first token in the buffer and able to 106 /// Creates a cursor referencing the first token in the buffer and able to
106 /// traverse until the end of the buffer. 107 /// traverse until the end of the buffer.
107 pub fn begin(&self) -> Cursor { 108 pub fn begin(&self) -> Cursor<'_> {
108 Cursor::create(self, EntryPtr(EntryId(0), 0)) 109 Cursor::create(self, EntryPtr(EntryId(0), 0))
109 } 110 }
110 111