mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 19:08:04 +00:00
Use into_par_iter
instead of par_bridge
(#3435)
## Summary Use the native rayon range iterator instead of bridging the standard library's.
This commit is contained in:
parent
d665410d59
commit
c59cb1381a
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ pub fn unzip<R: Send + std::io::Read + std::io::Seek + HasLength>(
|
|||
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)?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue