Remove UserTrapper trait

This commit is contained in:
Lachlan Sneff
2019-04-18 10:00:15 -07:00
parent ccad8874e9
commit 4dd64ed72e
8 changed files with 14 additions and 58 deletions

View File

@ -59,9 +59,9 @@ fn main() -> Result<(), error::Error> {
},
})?;
let foo = instance.dyn_func("dbz")?;
let foo: Func<(), i32> = instance.func("dbz")?;
let result = foo.call(&[]);
let result = foo.call();
println!("result: {:?}", result);