@@ -157,7 +157,7 @@ fn test_freeform() {
157
157
name: Cow :: Borrowed ( "iTunNORM" ) ,
158
158
} ) ) ;
159
159
160
- f. ilst_mut ( ) . unwrap ( ) . insert_atom ( Atom :: new (
160
+ f. ilst_mut ( ) . unwrap ( ) . insert ( Atom :: new (
161
161
AtomIdent :: Freeform {
162
162
mean : Cow :: Borrowed ( "org.kde.TagLib" ) ,
163
163
name : Cow :: Borrowed ( "Foo" ) ,
@@ -177,7 +177,7 @@ fn test_freeform() {
177
177
assert_eq ! (
178
178
f. ilst( )
179
179
. unwrap( )
180
- . atom ( & AtomIdent :: Freeform {
180
+ . get ( & AtomIdent :: Freeform {
181
181
mean: Cow :: Borrowed ( "org.kde.TagLib" ) ,
182
182
name: Cow :: Borrowed ( "Foo" ) ,
183
183
} )
@@ -200,7 +200,7 @@ fn test_save_existing_when_ilst_is_last() {
200
200
201
201
let ilst = f. ilst_mut ( ) . unwrap ( ) ;
202
202
assert_eq ! (
203
- ilst. atom ( & AtomIdent :: Freeform {
203
+ ilst. get ( & AtomIdent :: Freeform {
204
204
mean: Cow :: Borrowed ( "com.apple.iTunes" ) ,
205
205
name: Cow :: Borrowed ( "replaygain_track_minmax" ) ,
206
206
} )
@@ -220,7 +220,7 @@ fn test_save_existing_when_ilst_is_last() {
220
220
let ilst = f. ilst ( ) . unwrap ( ) ;
221
221
222
222
assert_eq ! (
223
- ilst. atom ( & AtomIdent :: Freeform {
223
+ ilst. get ( & AtomIdent :: Freeform {
224
224
mean: Cow :: Borrowed ( "com.apple.iTunes" ) ,
225
225
name: Cow :: Borrowed ( "replaygain_track_minmax" ) ,
226
226
} )
@@ -252,7 +252,7 @@ fn test_covr_read() {
252
252
let f = Mp4File :: read_from ( & mut file, ParseOptions :: new ( ) ) . unwrap ( ) ;
253
253
let tag = f. ilst ( ) . unwrap ( ) ;
254
254
assert ! ( tag. contains( & AtomIdent :: Fourcc ( * b"covr" ) ) ) ;
255
- let mut covrs = tag. atom ( & AtomIdent :: Fourcc ( * b"covr" ) ) . unwrap ( ) . data ( ) ;
255
+ let mut covrs = tag. get ( & AtomIdent :: Fourcc ( * b"covr" ) ) . unwrap ( ) . data ( ) ;
256
256
let Some ( AtomData :: Picture ( picture1) ) = covrs. next ( ) else {
257
257
unreachable ! ( )
258
258
} ;
@@ -291,7 +291,7 @@ fn test_covr_write() {
291
291
let tag = f. ilst ( ) . unwrap ( ) ;
292
292
assert ! ( tag. contains( & AtomIdent :: Fourcc ( * b"covr" ) ) ) ;
293
293
294
- let mut covrs = tag. atom ( & AtomIdent :: Fourcc ( * b"covr" ) ) . unwrap ( ) . data ( ) ;
294
+ let mut covrs = tag. get ( & AtomIdent :: Fourcc ( * b"covr" ) ) . unwrap ( ) . data ( ) ;
295
295
let Some ( AtomData :: Picture ( picture1) ) = covrs. next ( ) else {
296
296
unreachable ! ( )
297
297
} ;
@@ -318,7 +318,7 @@ fn test_covr_read2() {
318
318
let f = Mp4File :: read_from ( & mut file, ParseOptions :: new ( ) ) . unwrap ( ) ;
319
319
let tag = f. ilst ( ) . unwrap ( ) ;
320
320
assert ! ( tag. contains( & AtomIdent :: Fourcc ( * b"covr" ) ) ) ;
321
- let mut covrs = tag. atom ( & AtomIdent :: Fourcc ( * b"covr" ) ) . unwrap ( ) . data ( ) ;
321
+ let mut covrs = tag. get ( & AtomIdent :: Fourcc ( * b"covr" ) ) . unwrap ( ) . data ( ) ;
322
322
let Some ( AtomData :: Picture ( picture1) ) = covrs. next ( ) else {
323
323
unreachable ! ( )
324
324
} ;
@@ -456,7 +456,7 @@ fn test_non_full_meta_atom() {
456
456
457
457
let tag = f. ilst ( ) . unwrap ( ) ;
458
458
assert ! ( tag. contains( & AtomIdent :: Fourcc ( * b"covr" ) ) ) ;
459
- let mut covrs = tag. atom ( & AtomIdent :: Fourcc ( * b"covr" ) ) . unwrap ( ) . data ( ) ;
459
+ let mut covrs = tag. get ( & AtomIdent :: Fourcc ( * b"covr" ) ) . unwrap ( ) . data ( ) ;
460
460
let Some ( AtomData :: Picture ( picture1) ) = covrs. next ( ) else {
461
461
unreachable ! ( )
462
462
} ;
@@ -472,7 +472,7 @@ fn test_non_full_meta_atom() {
472
472
473
473
assert_eq ! ( tag. artist( ) . as_deref( ) , Some ( "Test Artist!!!!" ) ) ;
474
474
assert_eq ! (
475
- tag. atom ( & AtomIdent :: Fourcc ( * b"\xa9 too" ) )
475
+ tag. get ( & AtomIdent :: Fourcc ( * b"\xa9 too" ) )
476
476
. unwrap( )
477
477
. data( )
478
478
. next( )
0 commit comments