Skip to content

Commit

Permalink
Fix windows compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
konstin committed Sep 14, 2018
1 parent a7028d8 commit 5760f9b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
9 changes: 8 additions & 1 deletion Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.3.1] - 2017-09-14

### Fixed

* Windows compilation

## [0.3.0] - 2017-09-14

### Added
Expand Down Expand Up @@ -38,7 +44,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

* Initial Release

[Unreleased]: https://github.com/pyo3/pyo3-pack/compare/v1.0.0...HEAD
[Unreleased]: https://github.com/pyo3/pyo3-pack/compare/v0.3.1...HEAD
[0.3.0]: https://github.com/pyo3/pyo3-pack/compare/v0.3.0...v0.3.1
[0.3.0]: https://github.com/pyo3/pyo3-pack/compare/v0.2.0...v0.3.0
[0.2.0]: https://github.com/pyo3/pyo3-pack/compare/v0.1.0...v0.2.0

Expand Down
6 changes: 3 additions & 3 deletions src/module_writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ impl ModuleWriter for DevelopModuleWriter {
&mut self,
target: impl AsRef<Path>,
bytes: &[u8],
permissions: u32,
_permissions: u32,
) -> Result<(), io::Error> {
let path = self.base_path.join(target);

Expand All @@ -103,12 +103,12 @@ impl ModuleWriter for DevelopModuleWriter {
fs::OpenOptions::new()
.create(true)
.write(true)
.mode(permissions)
.mode(_permissions)
.open(path)?
}
#[cfg(target_os = "windows")]
{
File::create(x)?
File::create(path)?
}
};

Expand Down

0 comments on commit 5760f9b

Please sign in to comment.