Skip to content

Commit

Permalink
chore: Update to avoid Rust 1.83 lints
Browse files Browse the repository at this point in the history
  • Loading branch information
jayvdb committed Nov 29, 2024
1 parent daef45f commit d707d3b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/bbox/idat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pub struct IdatBox<'a> {

#[allow(unused)]
impl<'a> IdatBox<'a> {
pub fn parse(input: &'a [u8]) -> IResult<&'a [u8], IdatBox> {
pub fn parse(input: &'a [u8]) -> IResult<&'a [u8], IdatBox<'a>> {
let (remain, header) = BoxHeader::parse(input)?;

let box_size = usize::try_from(header.box_size).expect("box size must fit into a `usize`.");
Expand Down
2 changes: 1 addition & 1 deletion src/jpeg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ struct Segment<'a> {
payload: &'a [u8],
}

impl<'a> Segment<'a> {
impl Segment<'_> {
pub fn payload_len(&self) -> usize {
self.payload.len()
}
Expand Down
1 change: 0 additions & 1 deletion src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ use crate::{
/// Passing in a `BufRead` should be avoided because [`MediaParser`] comes with
/// its own buffer management and the buffers can be shared between multiple
/// parsing tasks, thus avoiding frequent memory allocations.

pub struct MediaSource<R, S = Seekable> {
pub(crate) reader: R,
pub(crate) buf: Vec<u8>,
Expand Down

0 comments on commit d707d3b

Please sign in to comment.