Merge pull request #338 from Heap-Hop/master

adjust #[warn(unreachable_code)] position
This commit is contained in:
RustDesk 2021-12-21 17:45:54 +08:00 committed by GitHub
commit b6feaa695f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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() {