@@ -3,12 +3,11 @@ use crate::temp_file;
33use std:: fs:: File ;
44use std:: io:: { Read , Seek } ;
55
6+ use lofty:: config:: { GlobalOptions , ParseOptions , WriteOptions } ;
67use lofty:: error:: ErrorKind ;
8+ use lofty:: file:: { AudioFile , FileType , TaggedFile , TaggedFileExt } ;
79use lofty:: resolve:: FileResolver ;
8- use lofty:: {
9- Accessor , AudioFile , FileProperties , FileType , GlobalOptions , ParseOptions , Tag , TagExt ,
10- TagType , TaggedFile , TaggedFileExt , WriteOptions ,
11- } ;
10+ use lofty:: tag:: { Accessor , Tag , TagExt , TagType } ;
1211
1312fn file_ref_save ( path : & str , expected_file_type : FileType ) {
1413 let path = format ! ( "tests/taglib/data/{path}" ) ;
@@ -214,12 +213,13 @@ fn test_default_file_extensions() {
214213 // Marker test, Lofty does not replicate this API
215214}
216215
216+ use lofty:: properties:: FileProperties ;
217217use rusty_fork:: rusty_fork_test;
218218
219219rusty_fork_test ! {
220220 #[ test]
221221 fn test_file_resolver( ) {
222- lofty:: apply_global_options( GlobalOptions :: new( ) . use_custom_resolvers( true ) ) ;
222+ lofty:: config :: apply_global_options( GlobalOptions :: new( ) . use_custom_resolvers( true ) ) ;
223223
224224 {
225225 let file = lofty:: read_from_path( "tests/taglib/data/xing.mp3" ) . unwrap( ) ;
@@ -236,15 +236,15 @@ rusty_fork_test! {
236236 impl AudioFile for DummyResolver {
237237 type Properties = ( ) ;
238238
239- fn read_from<R >( _: & mut R , _: ParseOptions ) -> lofty:: Result <Self >
239+ fn read_from<R >( _: & mut R , _: ParseOptions ) -> lofty:: error :: Result <Self >
240240 where
241241 R : Read + Seek ,
242242 Self : Sized ,
243243 {
244244 Ok ( Self )
245245 }
246246
247- fn save_to( & self , _: & mut File , _: WriteOptions ) -> lofty:: Result <( ) > {
247+ fn save_to( & self , _: & mut File , _: WriteOptions ) -> lofty:: error :: Result <( ) > {
248248 unimplemented!( )
249249 }
250250
0 commit comments