Minor tweaks, fix bug

This commit is contained in:
torkleyy
2017-12-20 14:35:44 +01:00
parent f09545921f
commit a0fb5036f6
4 changed files with 35 additions and 38 deletions

View File

@@ -45,7 +45,7 @@ macro_rules! def_register {
// potentially clone the value, otherwise pass the reference.
Ok(Box::new(f($(($clone)($par)),*)) as Box<Any>)
};
self.register_fn_raw(name.to_owned(), vec![$(TypeId::of::<$par>()),*], Box::new(fun));
self.register_fn_raw(name.to_owned(), Some(vec![$(TypeId::of::<$par>()),*]), Box::new(fun));
}
}