From d10358df2ca1db6125d0d871dc4859b7c8f57f3d Mon Sep 17 00:00:00 2001 From: Rohit Narurkar Date: Thu, 23 Jun 2022 10:37:13 +0200 Subject: [PATCH] fix: compilation issues under target=windows --- src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 106c9d9..01c106d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -80,11 +80,11 @@ impl Installer { // extract archive let mut content = Cursor::new(&self.binbytes); - let archive = zip::ZipArchive::new(&mut content)?; - archive.extract(version_path)?; + let mut archive = zip::ZipArchive::new(&mut content)?; + archive.extract(version_path.as_path())?; // rename solc binary - std::fs::rename(version_path.join("solc.exe"), solc_path); + std::fs::rename(version_path.join("solc.exe"), solc_path.as_path()); Ok(solc_path) }