summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorfxqnlr <[email protected]>2023-04-20 15:13:58 +0200
committerfxqnlr <[email protected]>2023-04-20 15:13:58 +0200
commit8050cfcd70a16273cc2814fe29c8ee08320d85d3 (patch)
tree13924a7f1a9a0c7515beb47a14fe62d5c387d09a /src/lib.rs
parentfde646a876cc43857a278ef09250263a21d547ee (diff)
downloadmodlist-8050cfcd70a16273cc2814fe29c8ee08320d85d3.tar
modlist-8050cfcd70a16273cc2814fe29c8ee08320d85d3.tar.gz
modlist-8050cfcd70a16273cc2814fe29c8ee08320d85d3.zip
cargo fmt
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}