Skip to content

Commit

Permalink
Use copied instead of cloned on Option.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinhartman committed Nov 15, 2023
1 parent dab5373 commit b10d8b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/accelerate/src/quantum_circuit/circuit_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ impl CircuitData {
.into_iter()
.map(|b| {
let key = BitAsKey::new(b)?;
indices.get(&key).cloned().ok_or_else(|| {
indices.get(&key).copied().ok_or_else(|| {
PyKeyError::new_err(format!(
"Bit {:?} has not been added to this circuit.",
b
Expand Down

0 comments on commit b10d8b4

Please sign in to comment.