remove some uncessary allocations/copies

This commit is contained in:
Skgland
2025-11-18 21:59:55 +01:00
committed by Bennet Bleßmann
parent 6b5ec3fab8
commit a283c8bdc2
4 changed files with 8 additions and 16 deletions

View File

@@ -1842,9 +1842,7 @@ impl Machine {
let err = self.machine_st.permission_error(
Permission::Modify,
atom!("static_procedure"),
functor_stub(atom!(":"), 2)
.into_iter()
.collect::<MachineStub>(),
functor_stub(atom!(":"), 2),
);
self.machine_st