From 6d5f8b945fd5ac9f7995e850d4c45b1df6e4bb4a Mon Sep 17 00:00:00 2001 From: robtfm <50659922+robtfm@users.noreply.github.com> Date: Wed, 18 Sep 2024 15:20:20 +0100 Subject: [PATCH] don't panic on failed touch file remove --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 5862f670..ff01203a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -357,7 +357,7 @@ fn main() { app.run(); - std::fs::remove_file(format!("{}.touch", SESSION_LOG.get().unwrap())).unwrap(); + let _ = std::fs::remove_file(format!("{}.touch", SESSION_LOG.get().unwrap())); } fn setup(