Inline Cursor::next_with_spacing
.
This commit is contained in:
parent
b09522a634
commit
5b653c1a43
1 changed files with 1 additions and 0 deletions
|
@ -575,6 +575,7 @@ impl Cursor {
|
|||
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…
Add table
Add a link
Reference in a new issue