Skip to content

Commit

Permalink
Add appropriate bounds to new Engine functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterhuene committed Jan 8, 2021
1 parent 69612f2 commit d69dd5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions accepted/engine-host-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ pub fn define_function(
module: &str,
name: &str,
ty: FuncType,
func: impl Fn(Caller<'_>, &[Val], &mut [Val]) -> Result<(), Trap> + 'static,
func: impl Fn(Caller<'_>, &[Val], &mut [Val]) -> Result<(), Trap> + Send + Sync + 'static,
) -> Result<()>;

/// Defines a function for the `Engine` from the given Rust closure.
Expand All @@ -113,7 +113,7 @@ pub fn wrap_function<Params, Results>(
&self,
module: &str,
name: &str,
func: impl IntoFunc<Params, Results>,
func: impl IntoFunc<Params, Results> + Send + Sync,
) -> Result<()>;
```

Expand Down

0 comments on commit d69dd5c

Please sign in to comment.