Streamline as_mut to &mut.

This commit is contained in:
Stephen Chung
2021-04-17 13:54:24 +08:00
parent 199df9aa4a
commit 2f2b7403cb
4 changed files with 16 additions and 26 deletions

View File

@@ -348,7 +348,7 @@ impl FnPtr {
arg_values.iter_mut().collect()
};
ctx.call_fn_dynamic_raw(self.fn_name(), is_method, args.as_mut())
ctx.call_fn_dynamic_raw(self.fn_name(), is_method, &mut args)
}
}