Kaynağa Gözat

config from_path

Thomas 1 ay önce
ebeveyn
işleme
f977672ffe
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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()