Fix sync build.

This commit is contained in:
Stephen Chung
2021-03-26 16:57:28 +08:00
parent c443c3bb48
commit 33f88dc813
2 changed files with 31 additions and 29 deletions

View File

@@ -733,7 +733,7 @@ impl Module {
access: FnAccess,
_arg_names: Option<&[&str]>,
arg_types: &[TypeId],
func: impl PluginFunction + 'static,
func: impl PluginFunction + SendSync + 'static,
) -> u64 {
let is_method = func.is_method_call();