parallel_handler: explicit Arc::clone
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
ae3cfa8f0d
commit
db24c01106
|
@ -49,7 +49,7 @@ impl<I> Clone for SendHandle<I> {
|
||||||
fn clone(&self) -> Self {
|
fn clone(&self) -> Self {
|
||||||
Self {
|
Self {
|
||||||
input: self.input.clone(),
|
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 {
|
for i in 0..threads {
|
||||||
let input_rx = input_rx.clone();
|
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
|
// Erase the 'a lifetime bound. This is safe because we
|
||||||
// join all thread in the drop handler.
|
// join all thread in the drop handler.
|
||||||
|
|
Loading…
Reference in New Issue