Skip to content

Commit 1c252a7

Browse files
authored
Fix build error: remove redundant .into() on hmod
1 parent 2b4e2c6 commit 1c252a7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ fn main() {
118118
let _ = LAYOUTS.set(LayoutList(list));
119119

120120
let hmod = GetModuleHandleW(None).unwrap();
121-
let hook = SetWindowsHookExW(WH_KEYBOARD_LL, Some(hook_proc), hmod.into(), 0).unwrap();
121+
let hook = SetWindowsHookExW(WH_KEYBOARD_LL, Some(hook_proc), hmod, 0).unwrap();
122122
let _guard = HookGuard(hook);
123123

124124
let mut msg = MSG::default();

0 commit comments

Comments
 (0)