Skip to content

Commit

Permalink
Fix c_void import ambiguity
Browse files Browse the repository at this point in the history
  • Loading branch information
lilith committed May 19, 2022
1 parent 0508903 commit e48f522
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions imageflow_core/src/codecs/mozjpeg_decoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ use ::mozjpeg_sys::*;
use imageflow_helpers::preludes::from_std::ptr::{null, slice_from_raw_parts, null_mut};
use imageflow_types::DecoderCommand::IgnoreColorProfileErrors;
use crate::graphics::bitmaps::{BitmapKey, ColorSpace, BitmapCompositing};
use mozjpeg_sys::c_void;

static CMYK_PROFILE: &'static [u8] = include_bytes!("cmyk.icc");

Expand Down Expand Up @@ -562,7 +563,7 @@ impl MzDec{
},
gamma: self.gamma
};

if let Some(profile) = self.color_profile.as_deref_mut() {
//let hash = imageflow_helpers::hashing::hash_64(&profile[80..]);

Expand All @@ -576,4 +577,4 @@ impl MzDec{
}
info
}
}
}

0 comments on commit e48f522

Please sign in to comment.