@@ -45,15 +45,15 @@ fn public_api() {
45
45
// track.data part
46
46
assert_eq ! ( match v. codec_specific {
47
47
mp4:: VideoCodecSpecific :: AVCConfig ( v) => {
48
- assert!( v . len ( ) > 0 ) ;
48
+ assert!( !v . is_empty ( ) ) ;
49
49
"AVC"
50
50
}
51
51
mp4:: VideoCodecSpecific :: VPxConfig ( vpx) => {
52
52
// We don't enter in here, we just check if fields are public.
53
53
assert!( vpx. bit_depth > 0 ) ;
54
54
assert!( vpx. color_space > 0 ) ;
55
55
assert!( vpx. chroma_subsampling > 0 ) ;
56
- assert!( vpx. codec_init. len ( ) > 0 ) ;
56
+ assert!( ! vpx. codec_init. is_empty ( ) ) ;
57
57
"VPx"
58
58
}
59
59
} , "AVC" ) ;
@@ -82,7 +82,7 @@ fn public_api() {
82
82
}
83
83
mp4:: AudioCodecSpecific :: FLACSpecificBox ( flac) => {
84
84
// STREAMINFO block must be present and first.
85
- assert!( flac. blocks. len ( ) > 0 ) ;
85
+ assert!( ! flac. blocks. is_empty ( ) ) ;
86
86
assert_eq!( flac. blocks[ 0 ] . block_type, 0 ) ;
87
87
assert_eq!( flac. blocks[ 0 ] . data. len( ) , 34 ) ;
88
88
"FLAC"
@@ -201,7 +201,7 @@ fn public_video_cenc() {
201
201
for kid_id in pssh. kid {
202
202
assert_eq ! ( kid_id, kid) ;
203
203
}
204
- assert_eq ! ( pssh. data. len ( ) , 0 ) ;
204
+ assert ! ( pssh. data. is_empty ( ) ) ;
205
205
assert_eq ! ( pssh. box_content, pssh_box) ;
206
206
}
207
207
}
0 commit comments