From 5c3ca850d3870addcc34e7bbf49021b046e68cae Mon Sep 17 00:00:00 2001 From: Ed Page Date: Wed, 10 Jan 2024 12:06:18 -0600 Subject: [PATCH] fix(stream): Don't require Clone for Stateful's State I think this is a holdover from when we were more clone happy with streams. --- src/stream/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stream/mod.rs b/src/stream/mod.rs index d5d11aa3..ea910e71 100644 --- a/src/stream/mod.rs +++ b/src/stream/mod.rs @@ -982,7 +982,7 @@ impl Stream for Located { } } -impl Stream for Stateful { +impl Stream for Stateful { type Token = ::Token; type Slice = ::Slice; @@ -1435,7 +1435,7 @@ where impl Offset< as Stream>::Checkpoint> for Stateful where I: Stream, - S: Clone + crate::lib::std::fmt::Debug, + S: crate::lib::std::fmt::Debug, { #[inline(always)] fn offset_from(&self, other: & as Stream>::Checkpoint) -> usize {