Allow sanity-checks without parallel (#634)
This adds the use of the rayon shim when parallel is not enabled. See #632.
This commit is contained in:
parent
f6e3614fe9
commit
f7b837af69
1 changed files with 3 additions and 0 deletions
|
|
@ -2,6 +2,9 @@ use image::{codecs::png::PngDecoder, *};
|
|||
use log::{error, warn};
|
||||
use std::io::Cursor;
|
||||
|
||||
#[cfg(not(feature = "parallel"))]
|
||||
use crate::rayon;
|
||||
|
||||
/// Validate that the output png data still matches the original image
|
||||
pub fn validate_output(output: &[u8], original_data: &[u8]) -> bool {
|
||||
let (old_frames, new_frames) = rayon::join(
|
||||
|
|
|
|||
Loading…
Reference in a new issue