Skip to content

Commit

Permalink
Inline helper method
Browse files Browse the repository at this point in the history
  • Loading branch information
aborgna-q authored Aug 5, 2024
1 parent 8e3ef38 commit e1fd6d8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tket2/src/passes/chunks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -445,9 +445,6 @@ impl CircuitChunks {
self.chunks.is_empty()
}

fn par_iter_mut_helper(chunk: &mut Chunk) -> &mut Circuit {
&mut chunk.circ
}
/// Supports implementation of rayon::iter::IntoParallelRefMutIterator
fn par_iter_mut(
&mut self,
Expand All @@ -458,7 +455,7 @@ impl CircuitChunks {
self.chunks
.as_parallel_slice_mut()
.into_par_iter()
.map(Self::par_iter_mut_helper)
.map(|chunk| &mut chunk.circ)
}
}

Expand Down

0 comments on commit e1fd6d8

Please sign in to comment.