summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs
index 038e2f4..1b8f041 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -5,7 +5,7 @@ pub mod cache;
5pub mod commands; 5pub mod commands;
6pub mod config; 6pub mod config;
7pub mod db; 7pub mod db;
8pub mod error; 8pub mod errors;
9pub mod files; 9pub mod files;
10pub mod data; 10pub mod data;
11 11
@@ -14,7 +14,7 @@ use config::Cfg;
14use data::{gameversion::VersionLevel, list::List, modification::{AddMod, IDSelector}, modloader::Modloader}; 14use data::{gameversion::VersionLevel, list::List, modification::{AddMod, IDSelector}, modloader::Modloader};
15pub use data::{STYLE_BAR_POS, STYLE_MESSAGE, STYLE_SPINNER, STYLE_BAR_BYTE, STYLE_OPERATION, PROGRESS_CHARS}; 15pub use data::{STYLE_BAR_POS, STYLE_MESSAGE, STYLE_SPINNER, STYLE_BAR_BYTE, STYLE_OPERATION, PROGRESS_CHARS};
16use db::{config_get_current_list, lists_get, lists_get_all_ids}; 16use db::{config_get_current_list, lists_get, lists_get_all_ids};
17use error::MLE; 17use errors::MLE;
18 18
19#[derive(Parser)] 19#[derive(Parser)]
20#[command(author, version, about)] 20#[command(author, version, about)]
@@ -297,7 +297,7 @@ async fn handle_list(
297 version, 297 version,
298 } => { 298 } => {
299 let ml = match modloader { 299 let ml = match modloader {
300 Some(ml) => Modloader::from(&ml).unwrap(), 300 Some(ml) => Modloader::try_from(ml.as_str())?,
301 None => config.defaults.modloader.clone(), 301 None => config.defaults.modloader.clone(),
302 }; 302 };
303 303