diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 6 |
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; | |||
5 | pub mod commands; | 5 | pub mod commands; |
6 | pub mod config; | 6 | pub mod config; |
7 | pub mod db; | 7 | pub mod db; |
8 | pub mod error; | 8 | pub mod errors; |
9 | pub mod files; | 9 | pub mod files; |
10 | pub mod data; | 10 | pub mod data; |
11 | 11 | ||
@@ -14,7 +14,7 @@ use config::Cfg; | |||
14 | use data::{gameversion::VersionLevel, list::List, modification::{AddMod, IDSelector}, modloader::Modloader}; | 14 | use data::{gameversion::VersionLevel, list::List, modification::{AddMod, IDSelector}, modloader::Modloader}; |
15 | pub use data::{STYLE_BAR_POS, STYLE_MESSAGE, STYLE_SPINNER, STYLE_BAR_BYTE, STYLE_OPERATION, PROGRESS_CHARS}; | 15 | pub use data::{STYLE_BAR_POS, STYLE_MESSAGE, STYLE_SPINNER, STYLE_BAR_BYTE, STYLE_OPERATION, PROGRESS_CHARS}; |
16 | use db::{config_get_current_list, lists_get, lists_get_all_ids}; | 16 | use db::{config_get_current_list, lists_get, lists_get_all_ids}; |
17 | use error::MLE; | 17 | use 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 | ||