diff --git a/scylla/src/transport/iterator.rs b/scylla/src/transport/iterator.rs index cb51471b0..160819f6c 100644 --- a/scylla/src/transport/iterator.rs +++ b/scylla/src/transport/iterator.rs @@ -663,12 +663,9 @@ impl QueryPager { /// It only allows deserializing owned types, because [Stream] is not lending. /// Begins with performing type check. #[inline] - pub fn rows_stream<'frame, 'metadata, RowT: 'static + DeserializeRow<'frame, 'metadata>>( + pub fn rows_stream DeserializeRow<'frame, 'metadata>>( self, - ) -> Result, TypeCheckError> - where - 'frame: 'metadata, - { + ) -> Result, TypeCheckError> { TypedRowLendingStream::::new(self).map(|typed_row_lending_stream| TypedRowStream { typed_row_lending_stream, })