Remove Rc wrapping of BuiltinFnPtr in BuiltinFn wrapper

I'm trying to remember why this was added in the first place - I think
to simplifly cloning? It's not important now though.

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
2022-01-24 17:53:29 -08:00
parent 070e497e1f
commit ea01f8e191
2 changed files with 4 additions and 4 deletions

View File

@@ -332,7 +332,7 @@ impl MachineBuilder {
) {
self.register_global(
name,
BuiltinFnObj::new(BuiltinFn::new(name.to_string(), Rc::new(fun))).into_gc(),
BuiltinFnObj::new(BuiltinFn::new(name.to_string(), fun)).into_gc(),
);
}