Skip to content

Commit

Permalink
Bump windows from 0.57.0 to 0.58.0 (#74)
Browse files Browse the repository at this point in the history
* Bump windows from 0.57.0 to 0.58.0

Bumps [windows](https://github.com/microsoft/windows-rs) from 0.57.0 to 0.58.0.
- [Release notes](https://github.com/microsoft/windows-rs/releases)
- [Commits](microsoft/windows-rs@0.57.0...0.58.0)

---
updated-dependencies:
- dependency-name: windows
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Fix as_handle impl

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jiahao XU <[email protected]>
  • Loading branch information
dependabot[bot] and NobodyXu authored Jul 4, 2024
1 parent 651e116 commit 78bb154
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 41 deletions.
89 changes: 50 additions & 39 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ default-features = false
features = ["fs", "std"]

[target.'cfg(windows)'.dependencies]
windows = { version = "0.57.0", features = ["Win32_Storage_FileSystem", "Win32_Foundation", "Win32_System_Ioctl", "Win32_System_IO", "Win32_System_SystemServices"] }
windows = { version = "0.58.0", features = ["Win32_Storage_FileSystem", "Win32_Foundation", "Win32_System_Ioctl", "Win32_System_IO", "Win32_System_SystemServices"] }

[features]
tracing = ["dep:tracing", "dep:tracing-attributes"]
Expand Down
2 changes: 1 addition & 1 deletion src/sys/windows_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ impl FileExt for File {
}

fn as_handle(&self) -> HANDLE {
HANDLE(unsafe { self.as_raw_handle().offset_from(ptr::null()) })
HANDLE(self.as_raw_handle())
}
}

Expand Down

0 comments on commit 78bb154

Please sign in to comment.