chore(deps): bump paths-slash (#1462)

This commit is contained in:
Matthias Seitz 2022-07-06 22:23:33 +02:00 committed by GitHub
parent 841b75430e
commit 958e0902a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

4
Cargo.lock generated
View File

@ -2589,9 +2589,9 @@ dependencies = [
[[package]]
name = "path-slash"
version = "0.1.5"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "498a099351efa4becc6a19c72aa9270598e8fd274ca47052e37455241c88b696"
checksum = "c54014ba3c1880122928735226f78b6f5bf5bd1fed15e41e92cf7aa20278ce28"
[[package]]
name = "pbkdf2"

View File

@ -38,7 +38,7 @@ dunce = "1.0.2"
solang-parser = { default-features = false, version = "=0.1.16" }
rayon = "1.5.3"
rand = { version = "0.8.5", optional = true }
path-slash = "0.1.5"
path-slash = "0.2.0"
cfg-if = "1.0.0"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]

View File

@ -488,9 +488,9 @@ impl<T: ArtifactOutput> Project<T> {
.into_iter()
.map(|(path, source)| {
let path: PathBuf = if let Ok(stripped) = path.strip_prefix(root) {
stripped.to_slash_lossy().into()
stripped.to_slash_lossy().into_owned().into()
} else {
path.to_slash_lossy().into()
path.to_slash_lossy().into_owned().into()
};
(path, source.clone())
})