-
Notifications
You must be signed in to change notification settings - Fork 2k
RA doesn't seem to respect cfg on fields #4063
Copy link
Copy link
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Fields
Give feedbackNo fields configured for issues without a type.