cargo fmt

This commit is contained in:
Bo Yao
2021-04-21 15:42:47 -07:00
parent 2eac442646
commit 24bcc9349e
224 changed files with 2778 additions and 7749 deletions

View File

@@ -85,10 +85,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
// Here we go.
//
// The Wasm module exports a function called `sum`. Let's get it.
let sum = instance
.exports
.get_function("sum")?
.native::<(i32, i32), i32>()?;
let sum = instance.exports.get_function("sum")?.native::<(i32, i32), i32>()?;
println!("Calling `sum` function...");
// Let's call the `sum` exported function. It will call each