From 0e8daa6bdc18fa6d0fefac0447d8b4c64ee1b4fe Mon Sep 17 00:00:00 2001 From: Luni-4 Date: Wed, 27 Nov 2019 23:23:19 +0100 Subject: [PATCH] Try to fix rayon --- av_metrics/src/video/mod.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/av_metrics/src/video/mod.rs b/av_metrics/src/video/mod.rs index b61adf3..32829ab 100644 --- a/av_metrics/src/video/mod.rs +++ b/av_metrics/src/video/mod.rs @@ -226,7 +226,7 @@ macro_rules! process_video { } trait VideoMetric { - type FrameResult; + type FrameResult: Clone + Send; type VideoResult; /// Generic method for internal use that processes multiple frames from a video @@ -242,10 +242,7 @@ trait VideoMetric { frame_limit: Option, ) -> Result> where - Self: std::marker::Send, Self: std::marker::Sync, - Self::FrameResult: std::marker::Send, - Self::FrameResult: std::clone::Clone, { if decoder1.get_bit_depth() != decoder2.get_bit_depth() { return Err(Box::new(MetricsError::InputMismatch {