-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Description
pub struct ZlibByteIter<'s> {
pub(crate) current: &'s [u8],
pub(crate) idat_iter: IdatIter<'s>,
#[cfg(not(feature = "png_skip_adler_checks"))]
pub(crate) adler: u32,
}
impl<'s> ZlibByteIter<'s> {
fn from_current_and_iter(current: &'s [u8], idat_iter: IdatIter<'s>) -> Self {
#[cfg(not(feature = "png_skip_adler_checks"))]
{
Self { current, idat_iter, adler: 1 }
}
#[cfg(feature = "png_skip_adler_checks")]
{
Self { current, idat_iter }
}
}
}
This will report the second cfg variant as missing the adler
field, which doesn't exist under that configuration.
Metadata
Metadata
Assignees
Labels
No labels