Skip to content

Commit

Permalink
fix(runtime-core) Use explicit dyn for trait objects.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hywan committed Feb 17, 2020
1 parent 7b0f7ee commit ad20a00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/runtime-core/src/typed_func.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ where

struct PolymorphicContext {
arg_types: Vec<Type>,
func: Box<Fn(&mut vm::Ctx, &[Value]) -> Vec<Value>>,
func: Box<dyn Fn(&mut vm::Ctx, &[Value]) -> Vec<Value>>,
}
unsafe extern "C" fn enter_host_polymorphic(
ctx: *const CallContext,
Expand Down

0 comments on commit ad20a00

Please sign in to comment.