File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -183,7 +183,11 @@ impl Vfs for OsFs {
183
183
Ok ( fs:: rename ( self . get_real_path ( from) ?, self . get_real_path ( to) ?) . await ?)
184
184
}
185
185
186
- async fn open ( & self , path : & str , options : OpenOptions ) -> VfsResult < Pin < Box < dyn VFile > > > {
186
+ async fn open (
187
+ & self ,
188
+ path : & str ,
189
+ options : OpenOptions ,
190
+ ) -> VfsResult < Pin < Box < dyn VFile + Send > > > {
187
191
let raw_path = self . get_real_path ( path) ?;
188
192
189
193
let file = fs:: OpenOptions :: new ( )
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ pub trait Vfs: Sync + Send {
37
37
async fn metadata ( & self , path : & str ) -> VfsResult < Box < dyn VMetadata > > ;
38
38
async fn mkdir ( & self , path : & str ) -> VfsResult < ( ) > ;
39
39
async fn mv ( & self , from : & str , to : & str ) -> VfsResult < ( ) > ;
40
- async fn open ( & self , path : & str , options : OpenOptions ) -> VfsResult < Pin < Box < dyn VFile > > > ;
40
+ async fn open ( & self , path : & str , options : OpenOptions )
41
+ -> VfsResult < Pin < Box < dyn VFile + Send > > > ;
41
42
async fn rm ( & self , path : & str ) -> VfsResult < ( ) > ;
42
43
}
You can’t perform that action at this time.
0 commit comments