From 64fac0752e7b35316b6a14424a24d2633cb645c9 Mon Sep 17 00:00:00 2001 From: gwenn Date: Tue, 28 May 2024 18:56:53 +0200 Subject: [PATCH] Fix dead_code warnings --- src/keymap.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/keymap.rs b/src/keymap.rs index b7303df84..edaf1ef23 100644 --- a/src/keymap.rs +++ b/src/keymap.rs @@ -389,10 +389,12 @@ pub trait Refresher { /// Returns `true` if there is a hint displayed. fn has_hint(&self) -> bool; /// Returns the hint text that is shown after the current cursor position. + #[cfg_attr(not(feature = "custom-bindings"), allow(dead_code))] fn hint_text(&self) -> Option<&str>; /// currently edited line fn line(&self) -> &str; /// Current cursor position (byte position) + #[cfg_attr(not(feature = "custom-bindings"), allow(dead_code))] fn pos(&self) -> usize; /// Display `msg` above currently edited line. fn external_print(&mut self, msg: String) -> Result<()>;