Skip to content

Commit 9b07771

Browse files
committed
Remove lines allowing clippy cognitive complexity checks.
Since these allow lines were added, this clippy lint has been downgraded to a nursery check via rust-lang/rust-clippy#5428 Since we don't have allows for other nursery lints, I suggest we remove these ones.
1 parent 9fb77e6 commit 9b07771

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

mp4parse/tests/public.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ static AVIF_CORRUPT_IMAGES: &str = "tests/corrupt";
4141

4242
// Adapted from https://github.com/GuillaumeGomez/audio-video-metadata/blob/9dff40f565af71d5502e03a2e78ae63df95cfd40/src/metadata.rs#L53
4343
#[test]
44-
#[allow(clippy::cognitive_complexity)] // TODO: Consider simplifying this
4544
fn public_api() {
4645
let mut fd = File::open(MINI_MP4).expect("Unknown file");
4746
let mut buf = Vec::new();
@@ -161,7 +160,6 @@ fn public_api() {
161160
}
162161

163162
#[test]
164-
#[allow(clippy::cognitive_complexity)] // TODO: Consider simplifying this
165163
fn public_metadata() {
166164
let mut fd = File::open(MINI_MP4_WITH_METADATA).expect("Unknown file");
167165
let mut buf = Vec::new();
@@ -228,7 +226,6 @@ fn public_metadata() {
228226
}
229227

230228
#[test]
231-
#[allow(clippy::cognitive_complexity)] // TODO: Consider simplifying this
232229
fn public_metadata_gnre() {
233230
let mut fd = File::open(MINI_MP4_WITH_METADATA_STD_GENRE).expect("Unknown file");
234231
let mut buf = Vec::new();
@@ -486,7 +483,6 @@ fn public_audio_cbcs() {
486483
}
487484

488485
#[test]
489-
#[allow(clippy::cognitive_complexity)] // TODO: Consider simplifying this
490486
fn public_video_cbcs() {
491487
let system_id = vec![
492488
0x10, 0x77, 0xef, 0xec, 0xc0, 0xb2, 0x4d, 0x02, 0xac, 0xe3, 0x3c, 0x1e, 0x52, 0xe2, 0xfb,
@@ -567,7 +563,6 @@ fn public_video_cbcs() {
567563
}
568564

569565
#[test]
570-
#[allow(clippy::cognitive_complexity)] // TODO: Consider simplifying this
571566
fn public_video_av1() {
572567
let mut fd = File::open(VIDEO_AV1_MP4).expect("Unknown file");
573568
let mut buf = Vec::new();

mp4parse_capi/tests/test_encryption.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ extern "C" fn buf_read(buf: *mut u8, size: usize, userdata: *mut std::os::raw::c
1212
}
1313

1414
#[test]
15-
#[allow(clippy::cognitive_complexity)] // TODO: Consider simplifying this
1615
fn parse_cenc() {
1716
let mut file = std::fs::File::open("tests/short-cenc.mp4").expect("Unknown file");
1817
let io = Mp4parseIo {

0 commit comments

Comments
 (0)