fix clippy

This commit is contained in:
Evan Almloff committed 2024-03-08 12:45:23 -06:00
1 parent ffc49530f6
commit f8a8ee3e29
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -58,7 +58,7 @@ pub fn use_global_shortcut(
handler: impl FnMut() + 'static,
) -> Result<ShortcutHandle, ShortcutRegistryError> {
// wrap the user's handler in something that will carry the scope/runtime with it
let mut cb = use_callback(handler);
let cb = use_callback(handler);
use_hook_with_cleanup(
move || window().create_shortcut(accelerator.accelerator(), move || cb.call()),