Skip to content

Commit

Permalink
chore(debugger): avoid taking ownership of Circuit when building debu…
Browse files Browse the repository at this point in the history
…g context (noir-lang#3147)

Co-authored-by: Tom French <[email protected]>
  • Loading branch information
mverzilli and TomAFrench authored Oct 13, 2023
1 parent 99f44a4 commit 1b08eb6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tooling/debugger/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ struct DebugContext<'backend, B: BlackBoxFunctionSolver> {
acvm: Option<ACVM<'backend, B>>,
debug_artifact: DebugArtifact,
foreign_call_executor: ForeignCallExecutor,
circuit: Circuit,
circuit: &'backend Circuit,
show_output: bool,
}

Expand Down Expand Up @@ -115,7 +115,7 @@ fn map_command_status(result: SolveResult) -> CommandStatus {

pub fn debug_circuit<B: BlackBoxFunctionSolver>(
blackbox_solver: &B,
circuit: Circuit,
circuit: &Circuit,
debug_artifact: DebugArtifact,
initial_witness: WitnessMap,
show_output: bool,
Expand Down
2 changes: 1 addition & 1 deletion tooling/nargo_cli/src/cli/debug_cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ pub(crate) fn debug_program(

noir_debugger::debug_circuit(
&blackbox_solver,
compiled_program.circuit.clone(),
&compiled_program.circuit,
debug_artifact,
initial_witness,
true,
Expand Down

0 comments on commit 1b08eb6

Please sign in to comment.