Skip to content

Commit

Permalink
Merge pull request #779 from gwenn/dead_code
Browse files Browse the repository at this point in the history
Fix dead_code warnings
  • Loading branch information
gwenn authored May 28, 2024
2 parents beaa717 + 64fac07 commit a00e67b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/keymap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<()>;
Expand Down

0 comments on commit a00e67b

Please sign in to comment.