summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 9db907d..43f0fe7 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,20 +1,20 @@
1pub mod apis; 1pub mod apis;
2pub mod config;
3pub mod commands; 2pub mod commands;
3pub mod config;
4pub mod db; 4pub mod db;
5pub mod error; 5pub mod error;
6pub mod files; 6pub mod files;
7 7
8use std::{path::Path, fmt::Display}; 8use std::{fmt::Display, path::Path};
9 9
10pub use apis::*; 10pub use apis::*;
11pub use commands::*; 11pub use commands::*;
12use error::{MLE, ErrorType, MLError}; 12use error::{ErrorType, MLError, MLE};
13 13
14#[derive(Debug, Clone, PartialEq, Eq)] 14#[derive(Debug, Clone, PartialEq, Eq)]
15pub enum Modloader { 15pub enum Modloader {
16 Fabric, 16 Fabric,
17 Forge 17 Forge,
18} 18}
19 19
20impl Modloader { 20impl Modloader {
@@ -22,7 +22,7 @@ impl Modloader {
22 match string { 22 match string {
23 "forge" => Ok(Modloader::Forge), 23 "forge" => Ok(Modloader::Forge),
24 "fabric" => Ok(Modloader::Fabric), 24 "fabric" => Ok(Modloader::Fabric),
25 _ => Err(MLError::new(ErrorType::ArgumentError, "UNKNOWN_MODLOADER")) 25 _ => Err(MLError::new(ErrorType::ArgumentError, "UNKNOWN_MODLOADER")),
26 } 26 }
27 } 27 }
28} 28}