File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ fn execute_wasm(options: &Run) -> Result<(), String> {
203
203
} ;
204
204
205
205
// TODO: refactor this
206
- #[ cfg( not( features = "wasi" ) ) ]
206
+ #[ cfg( not( feature = "wasi" ) ) ]
207
207
let ( _abi, import_object, _em_globals) = if wasmer_emscripten:: is_emscripten_module ( & module) {
208
208
let mut emscripten_globals = wasmer_emscripten:: EmscriptenGlobals :: new ( & module) ;
209
209
(
@@ -219,14 +219,18 @@ fn execute_wasm(options: &Run) -> Result<(), String> {
219
219
)
220
220
} ;
221
221
222
- #[ cfg( features = "wasi" ) ]
222
+ #[ cfg( feature = "wasi" ) ]
223
223
let ( _abi, import_object) = if wasmer_wasi:: is_wasi_module ( & module) {
224
224
(
225
225
InstanceABI :: WASI ,
226
226
wasmer_wasi:: generate_import_object (
227
- options. args . iter ( ) . map ( |arg| arg . into_bytes ( ) ) . collect ( ) ,
228
- env :: vars ( )
227
+ options
228
+ . args
229
229
. iter ( )
230
+ . cloned ( )
231
+ . map ( |arg| arg. into_bytes ( ) )
232
+ . collect ( ) ,
233
+ env:: vars ( )
230
234
. map ( |( k, v) | format ! ( "{}={}" , k, v) . into_bytes ( ) )
231
235
. collect ( ) ,
232
236
) ,
You can’t perform that action at this time.
0 commit comments