adjust #[warn(unreachable_code)] position

This commit is contained in:
csf 2021-12-21 16:35:18 +08:00
parent 362b5594a2
commit 5f190297a9

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