From 0012a676d2bd234ddbf96191712389f0b321f2e3 Mon Sep 17 00:00:00 2001 From: Aram Drevekenin Date: Tue, 19 Nov 2024 09:55:29 +0100 Subject: [PATCH] style(fmt): remove warnings --- default-plugins/status-bar/src/first_line.rs | 1 - zellij-utils/src/plugin_api/key.rs | 2 -- 2 files changed, 3 deletions(-) diff --git a/default-plugins/status-bar/src/first_line.rs b/default-plugins/status-bar/src/first_line.rs index ee9b9478d..9fd3b7d91 100644 --- a/default-plugins/status-bar/src/first_line.rs +++ b/default-plugins/status-bar/src/first_line.rs @@ -69,7 +69,6 @@ impl KeyShortcut { KeyModifier::Alt => "^A", KeyModifier::Super => "^Su", KeyModifier::Shift => "^Sh", - _ => "", }) .collect::>() .join("-"); diff --git a/zellij-utils/src/plugin_api/key.rs b/zellij-utils/src/plugin_api/key.rs index f6b75f802..e0d076c7b 100644 --- a/zellij-utils/src/plugin_api/key.rs +++ b/zellij-utils/src/plugin_api/key.rs @@ -73,8 +73,6 @@ impl TryFrom for ProtobufKeyModifier { KeyModifier::Alt => Ok(ProtobufKeyModifier::Alt), KeyModifier::Shift => Ok(ProtobufKeyModifier::Shift), KeyModifier::Super => Ok(ProtobufKeyModifier::Super), - _ => Err("unsupported key modifier"), // TODO: test this so we don't crash if we have a - // Capslock or something } } }