parallel_handler: clippy: 'while_let_loop'

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2020-09-28 09:53:43 +02:00
parent db24c01106
commit ee1a9c3230

View File

@ -162,13 +162,8 @@ impl<'a, I: Send + 'static> ParallelHandler<'a, I> {
impl<'a, I> Drop for ParallelHandler<'a, I> { impl<'a, I> Drop for ParallelHandler<'a, I> {
fn drop(&mut self) { fn drop(&mut self) {
drop(self.input.take()); drop(self.input.take());
loop { while let Some(handle) = self.handles.pop() {
match self.handles.pop() {
Some(handle) => {
let _ = handle.join(); let _ = handle.join();
} }
None => break,
}
}
} }
} }