From f85e8c9a804e6c72a34fdde90261696d5a7d1254 Mon Sep 17 00:00:00 2001 From: sxyazi Date: Wed, 31 Jan 2024 08:58:23 +0800 Subject: [PATCH] .. --- yazi-config/src/keymap/control.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/yazi-config/src/keymap/control.rs b/yazi-config/src/keymap/control.rs index 3504dc33..74548fe7 100644 --- a/yazi-config/src/keymap/control.rs +++ b/yazi-config/src/keymap/control.rs @@ -49,19 +49,16 @@ pub enum ControlCow { } impl From<&'static Control> for ControlCow { - #[inline] fn from(c: &'static Control) -> Self { Self::Borrowed(c) } } impl From for ControlCow { - #[inline] fn from(c: Control) -> Self { Self::Owned(c) } } impl Deref for ControlCow { type Target = Control; - #[inline] fn deref(&self) -> &Self::Target { match self { Self::Owned(c) => c,