Skip to content

Commit

Permalink
Apply clippy suggestions (#1066)
Browse files Browse the repository at this point in the history
apply clippy suggestions
  • Loading branch information
Robbepop committed Jun 14, 2024
1 parent 7a84e73 commit 5656498
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions crates/wasmi/src/linker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1053,10 +1053,10 @@ mod tests {
let engine = Engine::default();
let mut builder = <Linker<()>>::build();
builder
.func_wrap("host", "func.0", |_caller: Caller<()>| unimplemented!())
.func_wrap("host", "func.0", |_caller: Caller<()>| ())
.unwrap();
builder
.func_wrap("host", "func.1", |_caller: Caller<()>| unimplemented!())
.func_wrap("host", "func.1", |_caller: Caller<()>| ())
.unwrap();
let linker = builder.finish().create(&engine);
let mut store = Store::new(&engine, ());
Expand All @@ -1082,11 +1082,11 @@ mod tests {
let engine = Engine::default();
let mut builder = <Linker<()>>::build();
builder
.func_wrap("host", "func.0", |_caller: Caller<()>| unimplemented!())
.func_wrap("host", "func.0", |_caller: Caller<()>| ())
.unwrap();
let mut linker = builder.finish().create(&engine);
linker
.func_wrap("host", "func.1", |_caller: Caller<()>| unimplemented!())
.func_wrap("host", "func.1", |_caller: Caller<()>| ())
.unwrap();
let mut store = Store::new(&engine, ());
let module = Module::new(&engine, &wasm[..]).unwrap();
Expand All @@ -1099,15 +1099,15 @@ mod tests {
let engine = Engine::default();
let mut builder = <Linker<()>>::build();
builder
.func_wrap("host", "func.0", |_caller: Caller<()>| unimplemented!())
.func_wrap("host", "func.0", |_caller: Caller<()>| ())
.unwrap();
let mut linker = builder.finish().create(&engine);
linker
.func_wrap("host", "func.1", |_caller: Caller<()>| unimplemented!())
.func_wrap("host", "func.1", |_caller: Caller<()>| ())
.unwrap();
// The following definition won't shadow the previous 'host/func.0' func and errors instead:
linker
.func_wrap("host", "func.0", |_caller: Caller<()>| unimplemented!())
.func_wrap("host", "func.0", |_caller: Caller<()>| ())
.unwrap_err();
}

Expand Down

0 comments on commit 5656498

Please sign in to comment.