File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -239,7 +239,7 @@ fn create_snapshot0_instance(store: &Store, config: wasi_config_t) -> Result<Was
239239
240240fn wasi_preview_builder ( config : wasi_config_t ) -> Result < WasiPreview1CtxBuilder > {
241241 use std:: convert:: TryFrom ;
242- use wasi_common:: OsOther ;
242+ use wasi_common:: OsFile ;
243243 let mut builder = WasiPreview1CtxBuilder :: new ( ) ;
244244 if config. inherit_args {
245245 builder. inherit_args ( ) ;
@@ -254,17 +254,17 @@ fn wasi_preview_builder(config: wasi_config_t) -> Result<WasiPreview1CtxBuilder>
254254 if config. inherit_stdin {
255255 builder. inherit_stdin ( ) ;
256256 } else if let Some ( file) = config. stdin {
257- builder. stdin ( OsOther :: try_from ( file) ?) ;
257+ builder. stdin ( OsFile :: try_from ( file) ?) ;
258258 }
259259 if config. inherit_stdout {
260260 builder. inherit_stdout ( ) ;
261261 } else if let Some ( file) = config. stdout {
262- builder. stdout ( OsOther :: try_from ( file) ?) ;
262+ builder. stdout ( OsFile :: try_from ( file) ?) ;
263263 }
264264 if config. inherit_stderr {
265265 builder. inherit_stderr ( ) ;
266266 } else if let Some ( file) = config. stderr {
267- builder. stderr ( OsOther :: try_from ( file) ?) ;
267+ builder. stderr ( OsFile :: try_from ( file) ?) ;
268268 }
269269 for preopen in config. preopens {
270270 builder. preopened_dir ( preopen. 0 , preopen. 1 ) ;
You can’t perform that action at this time.
0 commit comments