Skip to content

Commit

Permalink
windows-56
Browse files Browse the repository at this point in the history
  • Loading branch information
kennykerr authored and robmikh committed May 7, 2024
1 parent bd5a7d1 commit 135ab04
Show file tree
Hide file tree
Showing 5 changed files with 92 additions and 26 deletions.
110 changes: 88 additions & 22 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 @@ -8,7 +8,7 @@ edition = "2021"
rand = "0.8.5"

[dependencies.windows]
version = "0.53.0"
version = "0.56.0"
features = [
"Foundation_Collections",
"Foundation_Numerics",
Expand Down
2 changes: 1 addition & 1 deletion src/interop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ pub fn shutdown_dispatcher_queue_controller_and_wait(
let mut message = MSG::default();
unsafe {
while GetMessageW(&mut message, None, 0, 0).into() {
TranslateMessage(&message);
_ = TranslateMessage(&message);
DispatchMessageW(&message);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ fn run() -> Result<()> {
let mut message = MSG::default();
unsafe {
while GetMessageW(&mut message, None, 0, 0).into() {
TranslateMessage(&message);
_ = TranslateMessage(&message);
DispatchMessageW(&message);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ impl Window {
)
.ok()?
};
unsafe { ShowWindow(window, SW_SHOW) };
unsafe { _ = ShowWindow(window, SW_SHOW) };

Ok(result)
}
Expand Down

0 comments on commit 135ab04

Please sign in to comment.