From 5f190297a96486c6c554509388728c79fd24f093 Mon Sep 17 00:00:00 2001 From: csf Date: Tue, 21 Dec 2021 16:35:18 +0800 Subject: [PATCH] adjust #[warn(unreachable_code)] position --- libs/hbb_common/src/config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/hbb_common/src/config.rs b/libs/hbb_common/src/config.rs index bf4dfb7da..cf80cd49b 100644 --- a/libs/hbb_common/src/config.rs +++ b/libs/hbb_common/src/config.rs @@ -274,8 +274,8 @@ impl Config { return "".into(); } + #[allow(unreachable_code)] pub fn log_path() -> PathBuf { - #[allow(unreachable_code)] #[cfg(target_os = "macos")] { if let Some(path) = dirs_next::home_dir().as_mut() {