Dependency update (#73)

* Cargo update

* Updated crates

* Removed unused file

* Code cleanup

* Version bump

* Removed commented code
This commit was merged in pull request #73.
This commit is contained in:
KD
2025-10-12 16:57:49 -04:00
committed by GitHub
parent c2a2ca049d
commit 74184fa022
5 changed files with 337 additions and 344 deletions
-1
View File
@@ -1,4 +1,3 @@
pub mod api;
pub mod flags;
pub mod icarus_action;
pub mod upload_form;
-9
View File
@@ -1,9 +0,0 @@
use std::default::Default;
use serde::{Deserialize, Serialize};
#[derive(Debug, Default, Deserialize, Serialize)]
pub struct UploadForm {
pub url: Option<String>,
pub filepath: Option<String>,
}
-29
View File
@@ -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::<f64>().is_ok()
}
pub fn _index_of_item_in_container<F>(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);
}