@@ -44,16 +44,16 @@ mod wasi {
44
44
let container = Container :: from_bytes ( webc) . unwrap ( ) ;
45
45
let ( rt, tasks) = runtime ( ) ;
46
46
let pkg = BinaryPackage :: from_webc ( & container, & rt) . await . unwrap ( ) ;
47
- let mut stdout = virtual_fs:: ArcFile :: new ( Box :: new ( virtual_fs:: BufferFile :: default ( ) ) ) ;
47
+ let mut stdout = virtual_fs:: ArcFile :: new ( Box :: < virtual_fs:: BufferFile > :: default ( ) ) ;
48
48
49
49
let stdout_2 = stdout. clone ( ) ;
50
50
let handle = std:: thread:: spawn ( move || {
51
51
let _guard = tasks. runtime_handle ( ) . enter ( ) ;
52
52
WasiRunner :: new ( )
53
53
. with_args ( [ "--version" ] )
54
- . with_stdin ( Box :: new ( virtual_fs:: NullFile :: default ( ) ) )
54
+ . with_stdin ( Box :: < virtual_fs:: NullFile > :: default ( ) )
55
55
. with_stdout ( Box :: new ( stdout_2) as Box < _ > )
56
- . with_stderr ( Box :: new ( virtual_fs:: NullFile :: default ( ) ) )
56
+ . with_stderr ( Box :: < virtual_fs:: NullFile > :: default ( ) )
57
57
. run_command ( "wat2wasm" , & pkg, Arc :: new ( rt) )
58
58
} ) ;
59
59
@@ -79,9 +79,9 @@ mod wasi {
79
79
let _guard = tasks. runtime_handle ( ) . enter ( ) ;
80
80
WasiRunner :: new ( )
81
81
. with_args ( [ "-c" , "import sys; sys.exit(42)" ] )
82
- . with_stdin ( Box :: new ( virtual_fs:: NullFile :: default ( ) ) )
83
- . with_stdout ( Box :: new ( virtual_fs:: NullFile :: default ( ) ) )
84
- . with_stderr ( Box :: new ( virtual_fs:: NullFile :: default ( ) ) )
82
+ . with_stdin ( Box :: < virtual_fs:: NullFile > :: default ( ) )
83
+ . with_stdout ( Box :: < virtual_fs:: NullFile > :: default ( ) )
84
+ . with_stderr ( Box :: < virtual_fs:: NullFile > :: default ( ) )
85
85
. run_command ( "python" , & pkg, Arc :: new ( rt) )
86
86
} ) ;
87
87
0 commit comments