diff options
| author | Ellie Huxtable <ellie@atuin.sh> | 2024-07-25 13:40:04 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-25 13:40:04 +0100 |
| commit | 128891f53ecb2f78c5eb059495114a66f25a58de (patch) | |
| tree | fe09bf223b17ae35c01a732965a4c16e7e59d4a8 /ui/backend/src/run/pty.rs | |
| parent | chore(release): prepare for release v18.4.0-beta.3 (#2305) (diff) | |
| download | atuin-128891f53ecb2f78c5eb059495114a66f25a58de.zip | |
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
Diffstat (limited to 'ui/backend/src/run/pty.rs')
| -rw-r--r-- | ui/backend/src/run/pty.rs | 8 |
1 files changed, 3 insertions, 5 deletions
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(()) } |
