Skip to content

Commit ef47e85

Browse files
committed
fix windows
1 parent 70cfef8 commit ef47e85

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

crates/compilers/src/compile/project.rs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -372,12 +372,14 @@ impl<L: Language, S: CompilerSettings> CompilerSources<L, S> {
372372
use path_slash::PathBufExt;
373373

374374
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()
375+
versioned_sources.iter_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+
})
381383
});
382384
}
383385
}

0 commit comments

Comments
 (0)