From 128891f53ecb2f78c5eb059495114a66f25a58de Mon Sep 17 00:00:00 2001 From: Ellie Huxtable Date: Thu, 25 Jul 2024 13:40:04 +0100 Subject: fix(gui): do not hardcode db path (#2309) * feat(gui/backend): add cli_settings tauri command * chore(gui/backend): overdue cargo fmt * fix(gui): use configured db path, not hardcoded --- ui/backend/src/run/pty.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'ui/backend/src/run') diff --git a/ui/backend/src/run/pty.rs b/ui/backend/src/run/pty.rs index 2af617dd..1ede44a0 100644 --- a/ui/backend/src/run/pty.rs +++ b/ui/backend/src/run/pty.rs @@ -89,14 +89,12 @@ pub(crate) async fn pty_kill( let pty = state.pty_sessions.write().await.remove(&pid); match pty { - Some(pty)=>{ - - pty.kill_child().await.map_err(|e|e.to_string())?; + Some(pty) => { + pty.kill_child().await.map_err(|e| e.to_string())?; println!("RIP {pid:?}"); } - None=>{} + None => {} } - Ok(()) } -- cgit v1.3.1