diff --git a/src/models/mod.rs b/src/models/mod.rs index 32db87d..6441120 100644 --- a/src/models/mod.rs +++ b/src/models/mod.rs @@ -1,4 +1,4 @@ pub mod api; pub mod flags; pub mod icarus_action; -pub mod upload_form; +// pub mod upload_form; diff --git a/src/utilities/checks.rs b/src/utilities/checks.rs index e3d53a5..f8b0231 100644 --- a/src/utilities/checks.rs +++ b/src/utilities/checks.rs @@ -1,32 +1,3 @@ -use serde::{Deserialize, Serialize}; - -#[derive(Debug, Deserialize, Serialize)] -pub struct Checks {} - -impl Checks { - pub fn _is_numeric(text: &str) -> bool { - text.parse::().is_ok() - } - - pub fn _index_of_item_in_container(container: &str, item: &char, func: F) -> i32 - where - F: Fn(&char, &char) -> bool, - { - let mut index = -1; - - for c in container.chars() { - if func(&c, item) { - index += 1; - break; - } - - index += 1; - } - - index - } -} - pub fn exit_program(code: i32) { std::process::exit(code); }