clippy
This commit is contained in:
parent
f03a1761ac
commit
2407597870
@ -194,12 +194,8 @@ where
|
|||||||
/// ```
|
/// ```
|
||||||
pub fn into_stream(mut self) -> PinBoxStream<'db, Result<Vec<S::Item>, DbErr>> {
|
pub fn into_stream(mut self) -> PinBoxStream<'db, Result<Vec<S::Item>, DbErr>> {
|
||||||
Box::pin(stream! {
|
Box::pin(stream! {
|
||||||
loop {
|
while let Some(vec) = self.fetch_and_next().await? {
|
||||||
if let Some(vec) = self.fetch_and_next().await? {
|
yield Ok(vec);
|
||||||
yield Ok(vec);
|
|
||||||
} else {
|
|
||||||
break
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user