parallel_handler: clippy: 'while_let_loop'
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
db24c01106
commit
ee1a9c3230
@ -162,13 +162,8 @@ impl<'a, I: Send + 'static> ParallelHandler<'a, I> {
|
||||
impl<'a, I> Drop for ParallelHandler<'a, I> {
|
||||
fn drop(&mut self) {
|
||||
drop(self.input.take());
|
||||
loop {
|
||||
match self.handles.pop() {
|
||||
Some(handle) => {
|
||||
while let Some(handle) = self.handles.pop() {
|
||||
let _ = handle.join();
|
||||
}
|
||||
None => break,
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user