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>> {
|
||||
Box::pin(stream! {
|
||||
loop {
|
||||
if let Some(vec) = self.fetch_and_next().await? {
|
||||
yield Ok(vec);
|
||||
} else {
|
||||
break
|
||||
}
|
||||
while let Some(vec) = self.fetch_and_next().await? {
|
||||
yield Ok(vec);
|
||||
}
|
||||
})
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user