xmlstream: fix crash
This happened when (a bit too hastily) applying suggestions from a review.
This commit is contained in:
parent
bfe723cf46
commit
c795921631
1 changed files with 0 additions and 1 deletions
|
|
@ -88,7 +88,6 @@ impl<T> CaptureBufRead<T> {
|
|||
let this = self.project();
|
||||
let (buf, consumed_up_to) = this.buf.as_mut()?;
|
||||
let result = buf.drain(..*consumed_up_to).collect();
|
||||
buf.drain(..*consumed_up_to);
|
||||
*consumed_up_to = 0;
|
||||
Some(result)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue