Remove FunctionEnvMut for Function::new(…)

This commit is contained in:
Wolfgang Silbermayr
2022-08-04 07:41:43 +02:00
parent 7df3e3ca23
commit 566c897e57
10 changed files with 27 additions and 30 deletions

View File

@@ -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>,