Skip to content

Commit 34bd53f

Browse files
committed
fix(stream)!: Dont return input on peek_finish
1 parent 063cd34 commit 34bd53f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/stream/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -204,11 +204,11 @@ pub trait Stream: Offset<<Self as Stream>::Checkpoint> + crate::lib::std::fmt::D
204204
}
205205
/// Advance to the end of the stream
206206
#[inline(always)]
207-
fn peek_finish(&self) -> (Self, Self::Slice)
207+
fn peek_finish(&self) -> Self::Slice
208208
where
209209
Self: Clone,
210210
{
211-
self.peek_slice(self.eof_offset())
211+
self.peek_slice(self.eof_offset()).1
212212
}
213213

214214
/// Save the current parse location within the stream

0 commit comments

Comments
 (0)