Skip to content

Commit 9ba8f6e

Browse files
committed
Allow sanity-checks without parallel
1 parent 3759ca8 commit 9ba8f6e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/sanity_checks.rs

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ use image::{codecs::png::PngDecoder, *};
22
use log::{error, warn};
33
use std::io::Cursor;
44

5+
#[cfg(not(feature = "parallel"))]
6+
use crate::rayon;
7+
58
/// Validate that the output png data still matches the original image
69
pub fn validate_output(output: &[u8], original_data: &[u8]) -> bool {
710
let (old_frames, new_frames) = rayon::join(

0 commit comments

Comments
 (0)