mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
Inline Cursor::next_with_spacing
.
This commit is contained in:
parent
b09522a634
commit
5b653c1a43
@ -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…
Reference in New Issue
Block a user