Skip to content

Commit

Permalink
Fix cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
mtreinish committed Jan 14, 2025
1 parent b4a78d7 commit 067f460
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions crates/accelerate/src/sparse_observable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1319,12 +1319,7 @@ impl SparseObservable {

fn __getitem__(&self, py: Python, index: PySequenceIndex) -> PyResult<Py<PyAny>> {
let indices = match index.with_len(self.num_terms())? {
SequenceIndex::Int(index) => {
return self
.term(index)
.to_term()
.into_py_any(py)
}
SequenceIndex::Int(index) => return self.term(index).to_term().into_py_any(py),
indices => indices,
};
let mut out = SparseObservable::zero(self.num_qubits);
Expand Down

0 comments on commit 067f460

Please sign in to comment.