mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-07 21:28:21 +00:00
Remove FunctionEnvMut for Function::new(…)
This commit is contained in:
1
lib/api/src/js/externals/function.rs
vendored
1
lib/api/src/js/externals/function.rs
vendored
@@ -65,6 +65,7 @@ impl Function {
|
||||
///
|
||||
/// If you know the signature of the host function at compile time,
|
||||
/// consider using [`Function::new_typed`] for less runtime overhead.
|
||||
#[cfg(feature = "compiler")]
|
||||
pub fn new<FT, F>(store: &mut impl AsStoreMut, ty: FT, func: F) -> Self
|
||||
where
|
||||
FT: Into<FunctionType>,
|
||||
|
||||
Reference in New Issue
Block a user