Skip to content

Commit

Permalink
Merge pull request #420 from epage/clone
Browse files Browse the repository at this point in the history
fix(stream): Don't require Clone for Stateful's State
  • Loading branch information
epage authored Jan 10, 2024
2 parents fadf156 + 5c3ca85 commit 6ced74c
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 @@ -982,7 +982,7 @@ impl<I: Stream> Stream for Located<I> {
}
}

impl<I: Stream, S: Clone + crate::lib::std::fmt::Debug> Stream for Stateful<I, S> {
impl<I: Stream, S: crate::lib::std::fmt::Debug> Stream for Stateful<I, S> {
type Token = <I as Stream>::Token;
type Slice = <I as Stream>::Slice;

Expand Down Expand Up @@ -1435,7 +1435,7 @@ where
impl<I, S> Offset<<Stateful<I, S> as Stream>::Checkpoint> for Stateful<I, S>
where
I: Stream,
S: Clone + crate::lib::std::fmt::Debug,
S: crate::lib::std::fmt::Debug,
{
#[inline(always)]
fn offset_from(&self, other: &<Stateful<I, S> as Stream>::Checkpoint) -> usize {
Expand Down

0 comments on commit 6ced74c

Please sign in to comment.