From 958e0902a0199f9cfc1dc2db43c938dec9c15252 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Wed, 6 Jul 2022 22:23:33 +0200 Subject: [PATCH] chore(deps): bump paths-slash (#1462) --- Cargo.lock | 4 ++-- ethers-solc/Cargo.toml | 2 +- ethers-solc/src/lib.rs | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 1ccbfe2c..fe031011 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -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" diff --git a/ethers-solc/Cargo.toml b/ethers-solc/Cargo.toml index 3031ceb7..b5d8a4d5 100644 --- a/ethers-solc/Cargo.toml +++ b/ethers-solc/Cargo.toml @@ -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] diff --git a/ethers-solc/src/lib.rs b/ethers-solc/src/lib.rs index ccf9f63a..8d98713b 100644 --- a/ethers-solc/src/lib.rs +++ b/ethers-solc/src/lib.rs @@ -488,9 +488,9 @@ impl Project { .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()) })