From 529d52534c300aec4a6e3e9e08f9762a401f7086 Mon Sep 17 00:00:00 2001 From: fxqnlr Date: Thu, 25 May 2023 11:16:16 +0200 Subject: added more progress --- src/config.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/config.rs') 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 { impl Cfg { pub async fn init(path: Option) -> MLE { let configfile = match path.clone() { - Some(p) => String::from(p), + Some(p) => p, None => dirs::config_dir() .unwrap() .join("modlist") @@ -89,7 +89,7 @@ fn create_config(path: &str) -> MLE<()> { let default_cfg = Cfg { data: cache_dir.clone(), cache: format!("{}/cache", cache_dir), - versions: cache_dir.clone(), + versions: cache_dir, defaults: Defaults { modloader: Modloader::Fabric, version: VersionLevel::Release -- cgit v1.2.3