summaryrefslogtreecommitdiff
path: root/src/config.rs
diff options
context:
space:
mode:
authorfxqnlr <[email protected]>2023-05-25 11:16:16 +0200
committerfxqnlr <[email protected]>2023-05-25 11:16:16 +0200
commit529d52534c300aec4a6e3e9e08f9762a401f7086 (patch)
tree463d3538dd295bbf6416ca3f141a1395d6cd1b76 /src/config.rs
parent016e1d8d760113a64afcc5d516f08010cb566d68 (diff)
downloadmodlist-529d52534c300aec4a6e3e9e08f9762a401f7086.tar
modlist-529d52534c300aec4a6e3e9e08f9762a401f7086.tar.gz
modlist-529d52534c300aec4a6e3e9e08f9762a401f7086.zip
added more progress
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config.rs b/src/config.rs
index e1049d1..0cb1891 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -31,7 +31,7 @@ pub struct Defaults {
31impl Cfg { 31impl Cfg {
32 pub async fn init(path: Option<String>) -> MLE<Self> { 32 pub async fn init(path: Option<String>) -> MLE<Self> {
33 let configfile = match path.clone() { 33 let configfile = match path.clone() {
34 Some(p) => String::from(p), 34 Some(p) => p,
35 None => dirs::config_dir() 35 None => dirs::config_dir()
36 .unwrap() 36 .unwrap()
37 .join("modlist") 37 .join("modlist")
@@ -89,7 +89,7 @@ fn create_config(path: &str) -> MLE<()> {
89 let default_cfg = Cfg { 89 let default_cfg = Cfg {
90 data: cache_dir.clone(), 90 data: cache_dir.clone(),
91 cache: format!("{}/cache", cache_dir), 91 cache: format!("{}/cache", cache_dir),
92 versions: cache_dir.clone(), 92 versions: cache_dir,
93 defaults: Defaults { 93 defaults: Defaults {
94 modloader: Modloader::Fabric, 94 modloader: Modloader::Fabric,
95 version: VersionLevel::Release 95 version: VersionLevel::Release