Skip to content

Commit 67ac483

Browse files
committed
Ensure / for win
1 parent 64c5ecd commit 67ac483

File tree

1 file changed

+2
-1
lines changed
  • crates/compilers/src/preprocessor

1 file changed

+2
-1
lines changed

crates/compilers/src/preprocessor/data.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
use crate::preprocessor::SourceMapLocation;
22
use foundry_compilers_artifacts::{Source, Sources};
3+
use path_slash::PathExt;
34
use solar_parse::interface::{Session, SourceMap};
45
use solar_sema::{
56
hir::{Contract, ContractId, Hir},
@@ -83,7 +84,7 @@ impl ContractData {
8384
source: &solar_sema::hir::Source<'_>,
8485
source_map: &SourceMap,
8586
) -> Self {
86-
let artifact = format!("{}:{}", path.display(), contract.name);
87+
let artifact = format!("{}:{}", path.to_slash_lossy(), contract.name);
8788

8889
// Process data for contracts with constructor and parameters.
8990
let constructor_data = contract

0 commit comments

Comments
 (0)