From c476e23e834f16a664261fea94531e880d470859 Mon Sep 17 00:00:00 2001 From: Astrid Gealer Date: Fri, 9 Aug 2024 20:09:28 +0200 Subject: [PATCH] style: fix linting error --- src/hotkey.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hotkey.rs b/src/hotkey.rs index fe1d2d6..4ed396d 100644 --- a/src/hotkey.rs +++ b/src/hotkey.rs @@ -460,7 +460,7 @@ fn test_parse_hotkey() { // Ensure that if it is just multiple modifiers, we do not panic. // This would be a regression if this happened. - if let Ok(_) = HotKey::from_str("Shift+Ctrl") { + if HotKey::from_str("Shift+Ctrl").is_ok() { panic!("This is not a valid hotkey"); } }