@@ -13,7 +13,7 @@ pub struct HostFileSystem;
13
13
14
14
impl FileSystem for HostFileSystem {
15
15
fn read_dir ( & self , path : & Path ) -> Result < ReadDir , FsError > {
16
- let read_dir = std :: fs:: read_dir ( path) ?;
16
+ let read_dir = fs:: read_dir ( path) ?;
17
17
let data = read_dir
18
18
. map ( |entry| -> Result < DirEntry , _ > {
19
19
let entry = entry?;
@@ -114,7 +114,7 @@ impl FileOpener for HostFileOpener {
114
114
let read = conf. read ( ) ;
115
115
let write = conf. write ( ) ;
116
116
let append = conf. append ( ) ;
117
- let mut oo = std :: fs:: OpenOptions :: new ( ) ;
117
+ let mut oo = fs:: OpenOptions :: new ( ) ;
118
118
oo. read ( conf. read ( ) )
119
119
. write ( conf. write ( ) )
120
120
. create_new ( conf. create_new ( ) )
@@ -172,7 +172,7 @@ impl<'de> Deserialize<'de> for HostFile {
172
172
let flags = seq
173
173
. next_element ( ) ?
174
174
. ok_or_else ( || de:: Error :: invalid_length ( 1 , & self ) ) ?;
175
- let inner = std :: fs:: OpenOptions :: new ( )
175
+ let inner = fs:: OpenOptions :: new ( )
176
176
. read ( flags & HostFile :: READ != 0 )
177
177
. write ( flags & HostFile :: WRITE != 0 )
178
178
. append ( flags & HostFile :: APPEND != 0 )
@@ -209,7 +209,7 @@ impl<'de> Deserialize<'de> for HostFile {
209
209
}
210
210
let host_path = host_path. ok_or_else ( || de:: Error :: missing_field ( "host_path" ) ) ?;
211
211
let flags = flags. ok_or_else ( || de:: Error :: missing_field ( "flags" ) ) ?;
212
- let inner = std :: fs:: OpenOptions :: new ( )
212
+ let inner = fs:: OpenOptions :: new ( )
213
213
. read ( flags & HostFile :: READ != 0 )
214
214
. write ( flags & HostFile :: WRITE != 0 )
215
215
. append ( flags & HostFile :: APPEND != 0 )
@@ -329,7 +329,7 @@ impl VirtualFile for HostFile {
329
329
}
330
330
331
331
fn unlink ( & mut self ) -> Result < ( ) , FsError > {
332
- std :: fs:: remove_file ( & self . host_path ) . map_err ( Into :: into)
332
+ fs:: remove_file ( & self . host_path ) . map_err ( Into :: into)
333
333
}
334
334
fn sync_to_disk ( & self ) -> Result < ( ) , FsError > {
335
335
self . inner . sync_all ( ) . map_err ( Into :: into)
0 commit comments