ion-rust
ion-rust copied to clipboard
Use `next_slice` for row-column info prevention instead of `reset`
This is a follow-up issue on https://github.com/winnow-rs/winnow/discussions/742
Current approach in TextBuffer uses the reset API to preserve row and column information. Although reset is currently being used in lot of places which could lead to future issues if they change the way reset gets used.
We should rather rely on having this prevention logic in next_slice.