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

Update nom requirement from 7.0 to 8.0 #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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 Cargo.toml
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
nom = "7.0"
nom = "8.0"
av-data = "0.3"
av-format = "0.5.0"


Unchanged files with check annotations Beta

bytes::complete::{tag, take},
combinator::{cond, map, verify},
number::complete::{le_u16, le_u32},
sequence::{pair, tuple},

Check warning on line 5 in src/parser.rs

GitHub Actions / tests (stable-x86_64-unknown-linux-gnu)

use of deprecated function `nom::sequence::tuple`: `Parser` is directly implemented for tuples

Check failure on line 5 in src/parser.rs

GitHub Actions / clippy-rustfmt

use of deprecated function `nom::sequence::tuple`: `Parser` is directly implemented for tuples

Check failure on line 5 in src/parser.rs

GitHub Actions / clippy-rustfmt

use of deprecated function `nom::sequence::tuple`: `Parser` is directly implemented for tuples

Check warning on line 5 in src/parser.rs

GitHub Actions / tests (stable-x86_64-unknown-linux-gnu)

use of deprecated function `nom::sequence::tuple`: `Parser` is directly implemented for tuples
Err, IResult,
};
}
pub(crate) fn header(input: &[u8]) -> IResult<&[u8], Header, Error> {
map(

Check failure on line 52 in src/parser.rs

GitHub Actions / tests (stable-x86_64-unknown-linux-gnu)

Input` is not satisfied

Check failure on line 52 in src/parser.rs

GitHub Actions / tests (stable-x86_64-unknown-linux-gnu)

Input` is not satisfied

Check failure on line 52 in src/parser.rs

GitHub Actions / tests (stable-x86_64-unknown-linux-gnu)

expected function, found `impl Parser<&[u8], Output = Header<'_>, Error = _>`

Check failure on line 52 in src/parser.rs

GitHub Actions / tests (stable-x86_64-unknown-linux-gnu)

Input` is not satisfied

Check failure on line 52 in src/parser.rs

GitHub Actions / tests (stable-x86_64-unknown-linux-gnu)

Input` is not satisfied

Check failure on line 52 in src/parser.rs

GitHub Actions / tests (stable-x86_64-unknown-linux-gnu)

expected function, found `impl Parser<&[u8], Output = Header<'_>, Error = _>`
tuple((tag(b"RIFF"), le_u32, tag(b"WAVE"))),

Check warning on line 53 in src/parser.rs

GitHub Actions / tests (stable-x86_64-unknown-linux-gnu)

use of deprecated function `nom::sequence::tuple`: `Parser` is directly implemented for tuples

Check failure on line 53 in src/parser.rs

GitHub Actions / tests (stable-x86_64-unknown-linux-gnu)

Input` is not satisfied

Check failure on line 53 in src/parser.rs

GitHub Actions / tests (stable-x86_64-unknown-linux-gnu)

Input` is not satisfied

Check failure on line 53 in src/parser.rs

GitHub Actions / tests (stable-x86_64-unknown-linux-gnu)

Input` is not satisfied

Check failure on line 53 in src/parser.rs

GitHub Actions / tests (stable-x86_64-unknown-linux-gnu)

Input` is not satisfied

Check failure on line 53 in src/parser.rs

GitHub Actions / tests (stable-x86_64-unknown-linux-gnu)

Input` is not satisfied

Check failure on line 53 in src/parser.rs

GitHub Actions / tests (stable-x86_64-unknown-linux-gnu)

Input` is not satisfied

Check failure on line 53 in src/parser.rs

GitHub Actions / clippy-rustfmt

use of deprecated function `nom::sequence::tuple`: `Parser` is directly implemented for tuples

Check failure on line 53 in src/parser.rs

GitHub Actions / clippy-rustfmt

use of deprecated function `nom::sequence::tuple`: `Parser` is directly implemented for tuples

Check warning on line 53 in src/parser.rs

GitHub Actions / tests (stable-x86_64-unknown-linux-gnu)

use of deprecated function `nom::sequence::tuple`: `Parser` is directly implemented for tuples

Check failure on line 53 in src/parser.rs

GitHub Actions / tests (stable-x86_64-unknown-linux-gnu)

Input` is not satisfied

Check failure on line 53 in src/parser.rs

GitHub Actions / tests (stable-x86_64-unknown-linux-gnu)

Input` is not satisfied

Check failure on line 53 in src/parser.rs

GitHub Actions / tests (stable-x86_64-unknown-linux-gnu)

Input` is not satisfied

Check failure on line 53 in src/parser.rs

GitHub Actions / tests (stable-x86_64-unknown-linux-gnu)

Input` is not satisfied

Check failure on line 53 in src/parser.rs

GitHub Actions / tests (stable-x86_64-unknown-linux-gnu)

Input` is not satisfied

Check failure on line 53 in src/parser.rs

GitHub Actions / tests (stable-x86_64-unknown-linux-gnu)

Input` is not satisfied
|(magic1, file_size, magic2)| Header {
magic1,
file_size,
return Err(Err::Error(custom_error(input, 100)));
}
le_u16(input).and_then(|(i, size)| {
cond(chunk_size >= WAVEFORMATEX, take(size))(i)

Check failure on line 79 in src/parser.rs

GitHub Actions / tests (stable-x86_64-unknown-linux-gnu)

expected function, found `impl Parser<_, Output = Option<<impl FnMut(_) -> std::result::Result<(_, _), nom::Err<_>> as Parser<_>>::Output>, Error = _>`

Check failure on line 79 in src/parser.rs

GitHub Actions / clippy-rustfmt

expected function, found `impl nom::Parser<_, Output = std::option::Option<<impl FnMut(_) -> std::result::Result<(_, _), nom::Err<_>> as nom::Parser<_>>::Output>, Error = _>`

Check failure on line 79 in src/parser.rs

GitHub Actions / tests (stable-x86_64-unknown-linux-gnu)

expected function, found `impl Parser<_, Output = Option<<impl FnMut(_) -> std::result::Result<(_, _), nom::Err<_>> as Parser<_>>::Output>, Error = _>`
.map(|(i, data)| (i, data.map(|v| v.to_owned())))
})
}
fn parse_fmt(input: &[u8]) -> IResult<&[u8], Format, Error> {
verify(read_chunks_type, |t| t.0 == b"fmt ")(input).and_then(|(i, (_, chunk_size))| {
map(
tuple((

Check warning on line 98 in src/parser.rs

GitHub Actions / tests (stable-x86_64-unknown-linux-gnu)

use of deprecated function `nom::sequence::tuple`: `Parser` is directly implemented for tuples

Check failure on line 98 in src/parser.rs

GitHub Actions / clippy-rustfmt

use of deprecated function `nom::sequence::tuple`: `Parser` is directly implemented for tuples

Check failure on line 98 in src/parser.rs

GitHub Actions / clippy-rustfmt

use of deprecated function `nom::sequence::tuple`: `Parser` is directly implemented for tuples

Check warning on line 98 in src/parser.rs

GitHub Actions / tests (stable-x86_64-unknown-linux-gnu)

use of deprecated function `nom::sequence::tuple`: `Parser` is directly implemented for tuples
le_u16,
le_u16,
le_u32,