Fixes bug in Module::set_fn_4_mut

This commit is contained in:
Ilya Lakhin
2020-09-15 10:03:46 +07:00
parent db59aed14e
commit 4bb1a34abb
2 changed files with 24 additions and 1 deletions

View File

@@ -913,7 +913,7 @@ impl Module {
TypeId::of::<A>(),
TypeId::of::<B>(),
TypeId::of::<C>(),
TypeId::of::<C>(),
TypeId::of::<D>(),
];
self.set_fn(name, Public, &arg_types, Func::from_method(Box::new(f)))
}