Skip to content

Commit 40763b6

Browse files
Zaggy1024kinetiknz
authored andcommitted
Fix clippy errors.
One error had to be ignored for now due to the false positive in rust-lang/rust-clippy#10234, which is fixed in 1.68.
1 parent ec15987 commit 40763b6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mp4parse/tests/public.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use mp4parse as mp4;
77
use crate::mp4::{ParseStrictness, Status};
88
use std::convert::TryInto;
99
use std::fs::File;
10-
use std::io::{Cursor, Read, Seek, SeekFrom};
10+
use std::io::{Cursor, Read, Seek};
1111

1212
static MINI_MP4: &str = "tests/minimal.mp4";
1313
static MINI_MP4_WITH_METADATA: &str = "tests/metadata.mp4";
@@ -949,7 +949,7 @@ fn for_strictness_result(
949949
ParseStrictness::Normal,
950950
ParseStrictness::Strict,
951951
] {
952-
input.seek(SeekFrom::Start(0)).expect("rewind failed");
952+
input.rewind().expect("rewind failed");
953953
check(strictness, mp4::read_avif(input, strictness));
954954
}
955955
}
@@ -1116,6 +1116,7 @@ fn public_avif_transform_order() {
11161116
assert_avif_shall(IMAGE_AVIF_TRANSFORM_ORDER, Status::TxformOrder);
11171117
}
11181118

1119+
#[allow(clippy::uninlined_format_args)]
11191120
fn assert_unsupported_nonfatal(result: &mp4::Result<mp4::AvifContext>, feature: mp4::Feature) {
11201121
match result {
11211122
Ok(context) => {

0 commit comments

Comments
 (0)