Skip to content

Commit 26cf59a

Browse files
committed
Ensure / for win
1 parent 64c5ecd commit 26cf59a

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
@@ -9,6 +9,7 @@ use std::{
99
collections::{BTreeMap, HashSet},
1010
path::{Path, PathBuf},
1111
};
12+
use path_slash::PathExt;
1213

1314
/// Keeps data about project contracts definitions referenced from tests and scripts.
1415
/// Contract id -> Contract data definition mapping.
@@ -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)