Skip to content

Commit

Permalink
fix(stream)!: Dont return input on peek_finish
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Jan 29, 2025
1 parent 063cd34 commit 34bd53f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stream/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,11 +204,11 @@ pub trait Stream: Offset<<Self as Stream>::Checkpoint> + crate::lib::std::fmt::D
}
/// Advance to the end of the stream
#[inline(always)]
fn peek_finish(&self) -> (Self, Self::Slice)
fn peek_finish(&self) -> Self::Slice
where
Self: Clone,
{
self.peek_slice(self.eof_offset())
self.peek_slice(self.eof_offset()).1
}

/// Save the current parse location within the stream
Expand Down

0 comments on commit 34bd53f

Please # to comment.