Skip to content

Commit

Permalink
silence unhelpful warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
SludgePhD committed Jun 14, 2024
1 parent 0d5c26f commit 2d1e4b3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/jpeg/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ impl<'a> Reader<'a> {
#[derive(Debug)]
pub struct Segment<'a> {
/// Offset of the segment's marker in the input buffer.
#[allow(dead_code)] // used in tests
pub pos: usize,
pub kind: SegmentKind<'a>,
}
Expand All @@ -260,7 +261,11 @@ pub enum SegmentKind<'a> {
Sos(Sos<'a>),
Soi,
Eoi,
Other { marker: u8, data: &'a [u8] },
#[allow(dead_code)] // used in tests
Other {
marker: u8,
data: &'a [u8],
},
}

#[derive(Copy, Clone, AnyBitPattern)]
Expand Down

0 comments on commit 2d1e4b3

Please sign in to comment.