From e1bc6e34b3a5cedee51082edf2798c2f658520c3 Mon Sep 17 00:00:00 2001 From: rustdesk Date: Fri, 9 Dec 2022 19:43:26 +0800 Subject: [PATCH] remove a compile warn --- src/ipc.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ipc.rs b/src/ipc.rs index 18a81398c..34711a900 100644 --- a/src/ipc.rs +++ b/src/ipc.rs @@ -78,7 +78,7 @@ pub enum FS { WriteError { id: i32, file_num: i32, - err: String + err: String, }, WriteOffset { id: i32, @@ -544,7 +544,7 @@ async fn check_pid(postfix: &str) { } } } - std::fs::remove_file(&Config::ipc_path(postfix)); + std::fs::remove_file(&Config::ipc_path(postfix)).ok(); } #[inline]