Use &mut Any instead of &mut Box<Any>

This commit is contained in:
torkleyy
2017-12-20 21:52:26 +01:00
parent 348a680980
commit 71ebd0d4d1
3 changed files with 25 additions and 23 deletions

View File

@@ -27,7 +27,7 @@ macro_rules! def_register {
RET: Any,
{
fn register_fn(&mut self, name: &str, f: FN) {
let fun = move |mut args: Vec<&mut Box<Any>>| {
let fun = move |mut args: Vec<&mut Any>| {
// Check for length at the beginning to avoid
// per-element bound checks.
if args.len() != count_args!($($par)*) {