Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/tt/src/buffer.rs')
-rw-r--r--crates/tt/src/buffer.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/tt/src/buffer.rs b/crates/tt/src/buffer.rs
index c464e5ece1..de6379b5cd 100644
--- a/crates/tt/src/buffer.rs
+++ b/crates/tt/src/buffer.rs
@@ -10,8 +10,8 @@ pub struct Cursor<'a> {
}
impl<'a> Cursor<'a> {
- pub fn new(buffer: &'a [TokenTree]) -> Self {
- Self { buffer, index: 0, subtrees_stack: Vec::new() }
+ pub fn new(buffer: TokenTreesView<'a>) -> Self {
+ Self { buffer: buffer.0, index: 0, subtrees_stack: Vec::new() }
}
/// Check whether it is eof