Inline Cursor::next_with_spacing
.
This commit is contained in:
parent
b09522a634
commit
5b653c1a43
@ -575,6 +575,7 @@ fn new(stream: TokenStream) -> Self {
|
||||
Cursor { stream, index: 0 }
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn next_with_spacing(&mut self) -> Option<TreeAndSpacing> {
|
||||
self.stream.0.get(self.index).map(|tree| {
|
||||
self.index += 1;
|
||||
|
Loading…
Reference in New Issue
Block a user