mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-10 14:48:27 +00:00
No longer require FunctionEnvMut for new_typed(…) callback function
This commit is contained in:
@@ -151,7 +151,7 @@
|
||||
//! let memory = Memory::new(&mut store, MemoryType::new(1, None, false)).unwrap();
|
||||
//! imports! {
|
||||
//! "env" => {
|
||||
//! "my_function" => Function::new_typed(&mut store, |_env: FunctionEnvMut<()>| println!("Hello")),
|
||||
//! "my_function" => Function::new_typed(&mut store, || println!("Hello")),
|
||||
//! "memory" => memory,
|
||||
//! }
|
||||
//! }
|
||||
|
||||
Reference in New Issue
Block a user