Skip to content

Commit 70cfef8

Browse files
committed
fix windows
1 parent b7e7d57 commit 70cfef8

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

crates/compilers/src/compile/project.rs

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -371,15 +371,13 @@ impl<L: Language, S: CompilerSettings> CompilerSources<L, S> {
371371
{
372372
use path_slash::PathBufExt;
373373

374-
self.sources.values_mut().for_each(|versioned_sources| {
375-
versioned_sources.values_mut().for_each(|sources| {
376-
*sources = std::mem::take(sources)
377-
.into_iter()
378-
.map(|(path, source)| {
379-
(PathBuf::from(path.to_slash_lossy().as_ref()), source)
380-
})
381-
.collect()
382-
})
374+
self.sources.values_mut().for_each(|(_, sources, _)| {
375+
*sources = std::mem::take(sources)
376+
.into_iter()
377+
.map(|(path, source)| {
378+
(PathBuf::from(path.to_slash_lossy().as_ref()), source)
379+
})
380+
.collect()
383381
});
384382
}
385383
}

0 commit comments

Comments
 (0)