Skip to content

Commit

Permalink
fix: shadowing of to_string() in Key
Browse files Browse the repository at this point in the history
  • Loading branch information
iovis committed Feb 7, 2025
1 parent 1a7db67 commit 8382454
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion src/commands/fzf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ pub fn spawn(fzf_args: &[String]) -> Result<()> {
.0
.keys()
.map(Key::to_string)
.collect::<Vec<String>>()
.collect::<Vec<_>>()
.join(",");

fzf_command.arg("--no-input").arg("--bind").arg(format!(
Expand Down
4 changes: 0 additions & 4 deletions src/tmux/key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ impl Key {
Err(format!("{value} is not a valid tmux binding"))
}
}

pub fn to_string(&self) -> String {
self.0.to_string()
}
}

impl TryFrom<String> for Key {
Expand Down

0 comments on commit 8382454

Please # to comment.