fix unecessary reference/dereference

This commit is contained in:
Bennet Bleßmann
2025-07-31 21:31:34 +02:00
committed by Bennet Bleßmann
parent 72631b3e0b
commit ae3019d923
9 changed files with 16 additions and 16 deletions

View File

@@ -3277,7 +3277,7 @@ impl Machine {
&Instruction::PutPartialString(_, ref string, reg) => {
self.machine_st[reg] = backtrack_on_resource_error!(
self.machine_st,
self.machine_st.heap.allocate_pstr(&string)
self.machine_st.heap.allocate_pstr(string)
);
self.machine_st.p += 1;