Ver Fonte

config from_path

Thomas há 1 mês atrás
pai
commit
f977672ffe
1 ficheiros alterados com 1 adições e 1 exclusões
  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()