parallel_handler: explicit Arc::clone

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2020-09-28 09:44:37 +02:00
parent ae3cfa8f0d
commit db24c01106
1 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ impl<I> Clone for SendHandle<I> {
fn clone(&self) -> Self {
Self {
input: self.input.clone(),
abort: self.abort.clone(),
abort: Arc::clone(&self.abort),
}
}
}
@ -67,7 +67,7 @@ impl<'a, I: Send + 'static> ParallelHandler<'a, I> {
for i in 0..threads {
let input_rx = input_rx.clone();
let abort = abort.clone();
let abort = Arc::clone(&abort);
// Erase the 'a lifetime bound. This is safe because we
// join all thread in the drop handler.