Skip to content

Commit 8a6ed29

Browse files
committed
take ownershop of trace instaed cloning
1 parent 627c1ac commit 8a6ed29

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

cairo1-run/cairo

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit 879302d8cea7206ed6349bcc2bff2b3bfa0c7521

vm/src/vm/runners/cairo_runner.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1492,13 +1492,13 @@ impl CairoRunner {
14921492

14931493
/// Collects relevant information for the prover from the runner, including the
14941494
/// relocatable form of the trace, memory, public memory, and built-ins.
1495-
pub fn get_prover_input_info(&self) -> Result<ProverInputInfo, ProverInputInfoError> {
1495+
/// Remove the trace trace from the VM.
1496+
pub fn get_prover_input_info(&mut self) -> Result<ProverInputInfo, ProverInputInfoError> {
14961497
let relocatable_trace = self
14971498
.vm
14981499
.trace
1499-
.as_ref()
1500-
.ok_or(ProverInputInfoError::TraceNotEnabled)?
1501-
.clone();
1500+
.take()
1501+
.ok_or(ProverInputInfoError::TraceNotEnabled)?;
15021502

15031503
let relocatable_memory = self
15041504
.vm

0 commit comments

Comments
 (0)