소스 검색

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