Skip to content

Commit

Permalink
Update windows-sys to 0.42.0 (#47)
Browse files Browse the repository at this point in the history
* Update windows-sys requirement from 0.36.0 to 0.42.0

Updates the requirements on [windows-sys](https://github.com/microsoft/windows-rs) to permit the latest version.
- [Release notes](https://github.com/microsoft/windows-rs/releases)
- [Commits](microsoft/windows-rs@0.36.0...0.42.0)

---
updated-dependencies:
- dependency-name: windows-sys
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix `windows-sys` usage for an update to 0.42.0

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
niyaznigmatullin and dependabot[bot] authored Oct 21, 2022
1 parent 8b66129 commit 720ca0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ num_cpus = { version = "1.13", optional = true }
rayon = { version = "1.4", optional = true }

[target.'cfg(windows)'.dependencies.windows-sys]
version = "0.36.0"
version = "0.42.0"
features = [
"Win32_Foundation",
"Win32_Storage_FileSystem",
Expand Down
3 changes: 1 addition & 2 deletions src/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ use std::{

#[cfg(feature = "parallel")]
use rayon::prelude::*;
use windows_sys::Win32::System::SystemServices::*;
use windows_sys::Win32::Storage::FileSystem::*;
use windows_sys::Win32::Foundation::HANDLE;

Expand Down Expand Up @@ -145,7 +144,7 @@ fn delete_readonly(metadata: fs::Metadata, path: &Path) -> io::Result<()> {
file.set_permissions(perms)?;

let mut info = FILE_DISPOSITION_INFO {
DeleteFileA: true as u8,
DeleteFile: true as u8,
};
let result = unsafe {
SetFileInformationByHandle(
Expand Down

0 comments on commit 720ca0e

Please sign in to comment.