fix(codecs): gate the legacy EXIF walker to tests

Merging main left the app-owned TIFF walker without non-test callers, so
clippy's dead_code lint failed the gate. The walker is still the oracle for
the shared-summary compatibility test.
This commit is contained in:
Dylan M. Taylor
2026-11-18 09:10:59 -05:00
parent 7609d6e60c
commit c3c8e93b20
+3
View File
@@ -2,12 +2,14 @@
//! thumbnail, colour-space hint). Full EXIF parsing lives in `lightcraft-meta`.
/// Byte-order aware reader over a TIFF-structured blob.
#[cfg(test)]
#[derive(Clone, Copy)]
pub(crate) struct Tiff<'a> {
pub data: &'a [u8],
le: bool,
}
#[cfg(test)]
#[derive(Clone, Copy, Debug)]
pub(crate) struct Entry {
pub tag: u16,
@@ -17,6 +19,7 @@ pub(crate) struct Entry {
pub value_pos: usize,
}
#[cfg(test)]
impl<'a> Tiff<'a> {
pub fn new(data: &'a [u8]) -> Option<Tiff<'a>> {
let le = match data.get(0..2)? {