Skip to content

Commit

Permalink
fix: removed redundant clone
Browse files Browse the repository at this point in the history
  • Loading branch information
sirasistant committed Jul 4, 2023
1 parent 517a73d commit 1c59db0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
3 changes: 1 addition & 2 deletions crates/noirc_evaluator/src/brillig/brillig_ir/artifact.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@ impl BrilligArtifact {
return_parameters: Vec<BrilligParameter>,
target_function: Label,
) -> BrilligArtifact {
let mut entry_point_artifact =
BrilligArtifact::new(arguments.clone(), return_parameters.clone());
let mut entry_point_artifact = BrilligArtifact::new(arguments, return_parameters);
entry_point_artifact.entry_point_instruction();

entry_point_artifact
Expand Down
9 changes: 5 additions & 4 deletions crates/noirc_evaluator/src/ssa_refactor/acir_gen/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
use std::collections::HashMap;

use crate::brillig::{
brillig_gen::brillig_fn::FunctionContext, brillig_ir::artifact::BrilligArtifact, Brillig,
brillig_gen::brillig_fn::FunctionContext as BrilligFunctionContext,
brillig_ir::artifact::BrilligArtifact, Brillig,
};

use self::acir_ir::{
Expand Down Expand Up @@ -220,9 +221,9 @@ impl Context {

// Create the entry point artifact
let mut entry_point = BrilligArtifact::new_entry_point_artifact(
FunctionContext::parameters(func),
FunctionContext::return_values(func),
FunctionContext::function_id_to_function_label(*id),
BrilligFunctionContext::parameters(func),
BrilligFunctionContext::return_values(func),
BrilligFunctionContext::function_id_to_function_label(*id),
);
// Link the entry point with all dependencies
while let Some(unresolved_fn_label) = entry_point.first_unresolved_function_call() {
Expand Down

0 comments on commit 1c59db0

Please sign in to comment.