Skip to content

Commit 3a3b32b

Browse files
committed
fix build issues
1 parent 04fe619 commit 3a3b32b

File tree

2 files changed

+5
-11
lines changed
  • turbopack/crates

2 files changed

+5
-11
lines changed

turbopack/crates/turbo-tasks-fs/src/util.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
#[cfg(not(target_os = "windows"))]
2-
use std::path::PathBuf;
31
use std::{
42
io::{self, ErrorKind},
5-
path::Path,
3+
path::{Path, PathBuf},
64
};
75

86
use anyhow::{Context, Result, anyhow};

turbopack/crates/turbopack-core/src/source_map/utils.rs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -260,16 +260,12 @@ where
260260
Ok(())
261261
};
262262

263-
for src in map.sources.iter_mut().flatten() {
264-
if let Some(src) = src {
265-
apply_transform(src)?;
266-
}
263+
for src in map.sources.iter_mut().flatten().flatten() {
264+
apply_transform(src)?;
267265
}
268266
for section in map.sections.iter_mut().flatten() {
269-
for src in section.map.sources.iter_mut().flatten() {
270-
if let Some(src) = src {
271-
apply_transform(src)?;
272-
}
267+
for src in section.map.sources.iter_mut().flatten().flatten() {
268+
apply_transform(src)?;
273269
}
274270
}
275271

0 commit comments

Comments
 (0)