src/tools/parallel_handler.rs: remove unnecessary Sync trait bound

This commit is contained in:
Dietmar Maurer 2020-09-26 07:37:46 +02:00
parent 6ab77df3f5
commit 69b92fab7e
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ impl <I: Send + Sync + 'static> ParallelHandler<I> {
threads: usize, threads: usize,
handler_fn: F, handler_fn: F,
) -> Self ) -> Self
where F: Fn(I) -> Result<(), Error> + Send + Sync + Clone + 'static, where F: Fn(I) -> Result<(), Error> + Send + Clone + 'static,
{ {
let mut handles = Vec::new(); let mut handles = Vec::new();
let (input_tx, input_rx) = bounded::<I>(threads); let (input_tx, input_rx) = bounded::<I>(threads);