Skip to content

Commit b9ad72c

Browse files
authored
chore(build): bump dependencies to latest (#10)
1 parent 48444e8 commit b9ad72c

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

crates/win_event_hook/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ targets = ["x86_64-pc-windows-msvc"]
1919
bitflags = "2.3"
2020
lazy_static = "1.4"
2121
rayon = "1.7"
22-
thiserror = "1.0"
22+
thiserror = "2.0"
2323
tracing = "0.1"
2424

2525
[dev-dependencies]
2626
tracing-subscriber = { version = "0.3.17", features = ["env-filter"] }
2727
tracing-test = "0.2"
2828

2929
[target.'cfg(windows)'.dependencies.windows]
30-
version = "0.58"
30+
version = "0.61"
3131
features = [
3232
# SetWinEventHook
3333
"Win32_Foundation",

crates/win_event_hook/src/event_loop.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
use tracing::trace;
2-
use windows::Win32::{
3-
Foundation::HWND,
4-
UI::WindowsAndMessaging::{DispatchMessageW, GetMessageW, MSG, WM_QUIT},
5-
};
2+
use windows::Win32::UI::WindowsAndMessaging::{DispatchMessageW, GetMessageW, MSG, WM_QUIT};
63

74
/// Runs a windows event loop for pressing messages using [`GetMessageW`] and [`DispatchMessageW`].
85
pub unsafe fn run_event_loop() {
96
trace!("starting event_loop");
107
let mut message = MSG::default();
11-
while GetMessageW(&mut message, HWND(std::ptr::null_mut()), 0, 0).into() {
8+
while GetMessageW(&mut message, None, 0, 0).into() {
129
if message.message == WM_QUIT {
1310
break;
1411
}

crates/win_event_hook/src/hook.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ impl UnthreadedInner {
4343
SetWinEventHook(
4444
config.event_min,
4545
config.event_max,
46-
*module_handle,
46+
Some(*module_handle),
4747
Some(__on_win_event_hook_event),
4848
config.id_process,
4949
config.id_thread,

0 commit comments

Comments
 (0)