From 4f37a0abd1d23f77786bd120dc364e18e8008c87 Mon Sep 17 00:00:00 2001 From: Federico Terzi Date: Wed, 6 Oct 2021 19:25:20 +0200 Subject: [PATCH] fix(detect): fix warning --- espanso-detect/src/mac/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/espanso-detect/src/mac/mod.rs b/espanso-detect/src/mac/mod.rs index 9db7b6e..d9bc5b0 100644 --- a/espanso-detect/src/mac/mod.rs +++ b/espanso-detect/src/mac/mod.rs @@ -136,7 +136,7 @@ impl Source for CocoaSource { .hotkeys .iter() .filter_map(|hk| { - let raw = convert_hotkey_to_raw(&hk); + let raw = convert_hotkey_to_raw(hk); if raw.is_none() { error!("unable to register hotkey: {:?}", hk); }