Ver código fonte

Bump path-slash dependency

Signed-off-by: Sean Young <sean@mess.org>
Sean Young 3 anos atrás
pai
commit
44b7e86ebc
2 arquivos alterados com 3 adições e 3 exclusões
  1. 1 1
      Cargo.toml
  2. 2 2
      tests/contract.rs

+ 1 - 1
Cargo.toml

@@ -61,7 +61,7 @@ byteorder = "1.4"
 assert_cmd = "2.0"
 bincode = "1.3"
 ed25519-dalek = "1.0"
-path-slash = "0.1"
+path-slash = "0.2"
 pretty_assertions = "1.2"
 byte-slice-cast = "1.2.1"
 borsh = "0.9.3"

+ 2 - 2
tests/contract.rs

@@ -70,7 +70,7 @@ fn parse_file(path: PathBuf, target: Target) -> io::Result<()> {
     #[cfg(windows)]
     {
         for file in &mut ns.files {
-            let filename = file.path.to_slash_lossy();
+            let filename = file.path.to_slash_lossy().to_string();
             file.path = PathBuf::from(filename);
         }
     }
@@ -157,5 +157,5 @@ fn add_file(cache: &mut FileResolver, path: &Path, target: Target) -> io::Result
         }
     }
 
-    Ok(filename)
+    Ok(filename.to_string())
 }