Skip to content

Commit

Permalink
test: Fix EngineBuilder invokation in test
Browse files Browse the repository at this point in the history
  • Loading branch information
theduke committed Dec 16, 2022
1 parent 0e67e0a commit 4070d8e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/wasi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -743,12 +743,11 @@ pub fn build_test_engine(features: Option<wasmer::Features>) -> wasmer::Engine {
#[cfg(feature = "compiler-cranelift")]
{
let compiler = wasmer_compiler_cranelift::Cranelift::default();
wasmer::EngineBuilder::new(compiler)
.set_features(features)
.engine()
wasmer::EngineBuilder::new(compiler).set_features(features).engine()
}
#[cfg(not(feature = "compiler-cranelift"))]
{
// FIXME: implement!
let _ = features;
todo!()
}
Expand Down

0 comments on commit 4070d8e

Please sign in to comment.