Skip to content

Commit 73afcc1

Browse files
Take constants when precomipling hints, as they are not used
1 parent a93adb9 commit 73afcc1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vm/src/vm/runners/cairo_runner.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ use crate::{
55
stdlib::{
66
any::Any,
77
collections::{BTreeMap, HashMap, HashSet},
8+
mem,
89
ops::{Add, AddAssign, Mul, MulAssign, Sub, SubAssign},
910
prelude::*,
1011
rc::Rc,
@@ -380,7 +381,7 @@ impl CairoRunnerBuilder {
380381
&mut self,
381382
hint_processor: &mut dyn HintProcessor,
382383
) -> Result<(), VirtualMachineError> {
383-
let constants = Rc::new(self.program.constants.clone());
384+
let constants = Rc::new(mem::take(&mut self.program.constants));
384385
let references = &self.program.shared_program_data.reference_manager;
385386
let compiled_hints = self
386387
.program

0 commit comments

Comments
 (0)