summaryrefslogtreecommitdiff
path: root/src/config.rs
diff options
context:
space:
mode:
authorfxqnlr <[email protected]>2023-05-26 17:40:27 +0200
committerfxqnlr <[email protected]>2023-05-26 17:40:27 +0200
commit2d7e0a2fbf1c8a4187e2bf3fdcd592631ab273a0 (patch)
treecc8f3522670245775e4be7ac2a1e2ad4fd818c8f /src/config.rs
parentd8554e30029bf43dccce72e982784cd01857b0c4 (diff)
downloadmodlist-2d7e0a2fbf1c8a4187e2bf3fdcd592631ab273a0.tar
modlist-2d7e0a2fbf1c8a4187e2bf3fdcd592631ab273a0.tar.gz
modlist-2d7e0a2fbf1c8a4187e2bf3fdcd592631ab273a0.zip
added full progress? cargo fmt
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/"),