From 758563b5c62be585d94d4437c1e09d05ba9d4894 Mon Sep 17 00:00:00 2001 From: Toby Vincent Date: Mon, 29 Jan 2024 18:25:12 -0600 Subject: feat: impl include and exclude --- src/tmux.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tmux.rs') 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(tx: Sender, socket: S) -> Result<(), anyhow::Error> +pub async fn sessions(tx: Sender, socket: &S) -> Result<(), anyhow::Error> where S: AsRef, { @@ -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(()) -- cgit v1.2.3-70-g09d2