diff options
Diffstat (limited to 'src/config.rs')
-rw-r--r-- | src/config.rs | 4 |
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 { | |||
31 | impl Cfg { | 31 | impl 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 |