From c59cb1381aea425340216f3c462263e10339338d Mon Sep 17 00:00:00 2001 From: DaniPopes <57450786+DaniPopes@users.noreply.github.com> Date: Tue, 7 May 2024 21:38:35 +0200 Subject: [PATCH] Use `into_par_iter` instead of `par_bridge` (#3435) ## Summary Use the native rayon range iterator instead of bridging the standard library's. --- crates/uv-extract/src/sync.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/uv-extract/src/sync.rs b/crates/uv-extract/src/sync.rs index b3b8c42a7..07dfd1a63 100644 --- a/crates/uv-extract/src/sync.rs +++ b/crates/uv-extract/src/sync.rs @@ -17,7 +17,7 @@ pub fn unzip( let archive = ZipArchive::new(CloneableSeekableReader::new(reader))?; let directories = Mutex::new(FxHashSet::default()); (0..archive.len()) - .par_bridge() + .into_par_iter() .map(|file_number| { let mut archive = archive.clone(); let mut file = archive.by_index(file_number)?;