Skip to content

Commit

Permalink
Try to fix rayon
Browse files Browse the repository at this point in the history
  • Loading branch information
Luni-4 committed Nov 27, 2019
1 parent 64babcd commit 0e8daa6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions av_metrics/src/video/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -242,10 +242,7 @@ trait VideoMetric {
frame_limit: Option<usize>,
) -> Result<Self::VideoResult, Box<dyn Error>>
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 {
Expand Down

0 comments on commit 0e8daa6

Please sign in to comment.