瀏覽代碼

config from_path

Thomas 1 月之前
父節點
當前提交
f977672ffe
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/config.rs

+ 1 - 1
src/config.rs

@@ -444,7 +444,7 @@ lazy_static! {
 impl Config {
     /// Returns the config file path, e.g.:
     /// `~/.local/share/pandora/pandora-config.toml`.
-    fn config_path() -> PathBuf {
+    pub fn config_path() -> PathBuf {
         let mut path = directories::ProjectDirs::from("", "", "pandora")
             .expect("Could not determine project directory")
             .config_dir()