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 67ac483Copy full SHA for 67ac483
crates/compilers/src/preprocessor/data.rs
@@ -1,5 +1,6 @@
1
use crate::preprocessor::SourceMapLocation;
2
use foundry_compilers_artifacts::{Source, Sources};
3
+use path_slash::PathExt;
4
use solar_parse::interface::{Session, SourceMap};
5
use solar_sema::{
6
hir::{Contract, ContractId, Hir},
@@ -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