From 2df4da89dcc9c3742cfbecd58ce8c92192aff8d5 Mon Sep 17 00:00:00 2001 From: rustdesk Date: Mon, 16 Aug 2021 21:28:59 +0800 Subject: [PATCH] somebody not tidy, but like tidy code, :), https://github.com/rustdesk/rustdesk/issues/198 --- libs/hbb_common/src/config.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/hbb_common/src/config.rs b/libs/hbb_common/src/config.rs index 60a3ac5d6..819f4f8d7 100644 --- a/libs/hbb_common/src/config.rs +++ b/libs/hbb_common/src/config.rs @@ -272,6 +272,7 @@ impl Config { } pub fn log_path() -> PathBuf { + #[allow(unreachable_code)] #[cfg(target_os = "macos")] { if let Some(path) = dirs_next::home_dir().as_mut() {