File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ use mp4parse as mp4;
77use crate :: mp4:: { ParseStrictness , Status } ;
88use std:: convert:: TryInto ;
99use std:: fs:: File ;
10- use std:: io:: { Cursor , Read , Seek , SeekFrom } ;
10+ use std:: io:: { Cursor , Read , Seek } ;
1111
1212static MINI_MP4 : & str = "tests/minimal.mp4" ;
1313static 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) ]
11191120fn assert_unsupported_nonfatal ( result : & mp4:: Result < mp4:: AvifContext > , feature : mp4:: Feature ) {
11201121 match result {
11211122 Ok ( context) => {
You can’t perform that action at this time.
0 commit comments