Skip to content

Commit

Permalink
fix: compilation issues under target=windows
Browse files Browse the repository at this point in the history
  • Loading branch information
roynalnaruto committed Jun 23, 2022
1 parent a78e811 commit d10358d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit d10358d

Please sign in to comment.