From e1fd6d846277a5845068dfa01b5c14cdcdad68c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Agust=C3=ADn=20Borgna?= <121866228+aborgna-q@users.noreply.github.com> Date: Mon, 5 Aug 2024 15:16:19 +0100 Subject: [PATCH] Inline helper method --- tket2/src/passes/chunks.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tket2/src/passes/chunks.rs b/tket2/src/passes/chunks.rs index 00d28e8f..75b6d74e 100644 --- a/tket2/src/passes/chunks.rs +++ b/tket2/src/passes/chunks.rs @@ -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, @@ -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) } }