We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64c5ecd commit 26cf59aCopy full SHA for 26cf59a
crates/compilers/src/preprocessor/data.rs
@@ -9,6 +9,7 @@ use std::{
9
collections::{BTreeMap, HashSet},
10
path::{Path, PathBuf},
11
};
12
+use path_slash::PathExt;
13
14
/// Keeps data about project contracts definitions referenced from tests and scripts.
15
/// Contract id -> Contract data definition mapping.
@@ -83,7 +84,7 @@ impl ContractData {
83
84
source: &solar_sema::hir::Source<'_>,
85
source_map: &SourceMap,
86
) -> Self {
- let artifact = format!("{}:{}", path.display(), contract.name);
87
+ let artifact = format!("{}:{}", path.to_slash_lossy(), contract.name);
88
89
// Process data for contracts with constructor and parameters.
90
let constructor_data = contract
0 commit comments