diff options
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,20 +1,20 @@ | |||
1 | pub mod apis; | 1 | pub mod apis; |
2 | pub mod config; | ||
3 | pub mod commands; | 2 | pub mod commands; |
3 | pub mod config; | ||
4 | pub mod db; | 4 | pub mod db; |
5 | pub mod error; | 5 | pub mod error; |
6 | pub mod files; | 6 | pub mod files; |
7 | 7 | ||
8 | use std::{path::Path, fmt::Display}; | 8 | use std::{fmt::Display, path::Path}; |
9 | 9 | ||
10 | pub use apis::*; | 10 | pub use apis::*; |
11 | pub use commands::*; | 11 | pub use commands::*; |
12 | use error::{MLE, ErrorType, MLError}; | 12 | use error::{ErrorType, MLError, MLE}; |
13 | 13 | ||
14 | #[derive(Debug, Clone, PartialEq, Eq)] | 14 | #[derive(Debug, Clone, PartialEq, Eq)] |
15 | pub enum Modloader { | 15 | pub enum Modloader { |
16 | Fabric, | 16 | Fabric, |
17 | Forge | 17 | Forge, |
18 | } | 18 | } |
19 | 19 | ||
20 | impl Modloader { | 20 | impl 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 | } |