mirror of
https://github.com/storytold/lightcraft.git
synced 2026-11-21 20:38:15 +00:00
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:
@@ -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)? {
|
||||
|
||||
Reference in New Issue
Block a user