fixed build warning on Windows

This commit is contained in:
zonyitoo
2021-11-27 00:21:53 +08:00
parent 3e04feda52
commit 48e822d104

View File

@@ -1,7 +1,9 @@
//! Common configuration utilities
use directories::ProjectDirs;
use std::path::{Path, PathBuf};
#[cfg(unix)]
use std::path::Path;
use std::path::PathBuf;
/// Default configuration file path
pub fn get_default_config_path() -> Option<PathBuf> {