diff options
author | Toby Vincent <tobyv@tobyvin.dev> | 2024-01-29 18:25:12 -0600 |
---|---|---|
committer | Toby Vincent <tobyv@tobyvin.dev> | 2024-02-06 18:53:09 -0600 |
commit | 758563b5c62be585d94d4437c1e09d05ba9d4894 (patch) | |
tree | cb033006021d4bfb674bb85ee2a0ebf74305c542 /src/tmux.rs | |
parent | d749e1cb17744493c7a9e43e971518c8b12235b7 (diff) |
feat: impl include and exclude
Diffstat (limited to 'src/tmux.rs')
-rw-r--r-- | src/tmux.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tmux.rs b/src/tmux.rs index 129b4d3..7f3e416 100644 --- a/src/tmux.rs +++ b/src/tmux.rs @@ -4,7 +4,7 @@ use tokio::sync::mpsc::Sender; use crate::Host; -pub async fn sessions<S>(tx: Sender<Host>, socket: S) -> Result<(), anyhow::Error> +pub async fn sessions<S>(tx: Sender<Host>, socket: &S) -> Result<(), anyhow::Error> where S: AsRef<OsStr>, { @@ -42,7 +42,7 @@ where } for name in btree_map.into_values() { - tx.send(name.replace('_', ".").into()).await?; + tx.send(name.replace('_', ".").parse()?).await?; } Ok(()) |