summaryrefslogtreecommitdiffstats
path: root/src/tmux.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tmux.rs')
-rw-r--r--src/tmux.rs4
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(())