Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Update to avoid Rust 1.83 lints #30

Merged
merged 1 commit into from
Dec 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading