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> {
|
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() {
|
let _ = handle.join();
|
||||||
Some(handle) => {
|
|
||||||
let _ = handle.join();
|
|
||||||
}
|
|
||||||
None => break,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user