summaryrefslogtreecommitdiff
path: root/src/config.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/config.rs b/src/config.rs
index 54cf768..3858484 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -7,7 +7,7 @@ use std::{
7use indicatif::{ProgressBar, ProgressStyle}; 7use indicatif::{ProgressBar, ProgressStyle};
8use serde::{Deserialize, Serialize}; 8use serde::{Deserialize, Serialize};
9 9
10use crate::{db::db_setup, error::MLE, Modloader, VersionLevel, check_game_versions}; 10use crate::{check_game_versions, db::db_setup, error::MLE, Modloader, VersionLevel};
11 11
12#[derive(Debug, Clone, Serialize, Deserialize)] 12#[derive(Debug, Clone, Serialize, Deserialize)]
13pub struct Cfg { 13pub struct Cfg {
@@ -72,7 +72,7 @@ impl Cfg {
72 Err(..) => { 72 Err(..) => {
73 create_versions_dummy(&versionfile).await?; 73 create_versions_dummy(&versionfile).await?;
74 check_game_versions(&versionfile, true).await?; 74 check_game_versions(&versionfile, true).await?;
75 }, 75 }
76 } 76 }
77 77
78 Ok(config) 78 Ok(config)
@@ -95,7 +95,7 @@ fn create_config(path: &str) -> MLE<()> {
95 versions: cache_dir, 95 versions: cache_dir,
96 defaults: Defaults { 96 defaults: Defaults {
97 modloader: Modloader::Fabric, 97 modloader: Modloader::Fabric,
98 version: VersionLevel::Release 98 version: VersionLevel::Release,
99 }, 99 },
100 apis: Apis { 100 apis: Apis {
101 modrinth: String::from("https://api.modrinth.com/v2/"), 101 modrinth: String::from("https://api.modrinth.com/v2/"),