Fix Drop impl for Collection not iterating collection

This commit is contained in:
David Hoppenbrouwers
2022-09-09 18:36:34 +02:00
parent 012edd34de
commit 5b7ab472d4

View File

@ -151,7 +151,7 @@ impl<'a, 'p> Iterator for Collection<'a, 'p> {
impl Drop for Collection<'_, '_> {
fn drop(&mut self) {
//while matches!(self.next(), Some(Ok(_))) {}
while matches!(self.next(), Some(Ok(_))) {}
}
}