Skip to content

Commit

Permalink
remove clone() call
Browse files Browse the repository at this point in the history
  • Loading branch information
oxarbitrage committed Oct 20, 2021
1 parent 0bc6cd2 commit ac7a6df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/deutsch_jozsa.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ fn main() -> Result<(), CircuitError> {
Ok(())
}

#[derive(Clone, Debug)]
#[derive(Clone, Copy, Debug)]
enum FunctionType {
Balanced,
Constant,
Expand Down Expand Up @@ -45,7 +45,7 @@ fn algorithm(function_type: FunctionType) {
&mut b,
first_register,
second_register,
function_type.clone(),
function_type,
);

// apply hardamard to the first register
Expand Down

0 comments on commit ac7a6df

Please sign in to comment.