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