Code cleanup (#39)

* Code cleanup

* Removed unused source file
This commit was merged in pull request #39.
This commit is contained in:
KD
2025-03-24 19:51:41 -04:00
committed by GitHub
parent 4824e6f33a
commit 19d6f2dc33
5 changed files with 15 additions and 201 deletions
+2 -2
View File
@@ -4,11 +4,11 @@ use serde::{Deserialize, Serialize};
pub struct Checks {}
impl Checks {
pub fn is_numeric(text: &String) -> bool {
pub fn _is_numeric(text: &String) -> bool {
text.parse::<f64>().is_ok()
}
pub fn index_of_item_in_container<F>(container: &String, item: &char, func: F) -> i32
pub fn _index_of_item_in_container<F>(container: &String, item: &char, func: F) -> i32
where
F: Fn(&char, &char) -> bool,
{
-1
View File
@@ -1,4 +1,3 @@
pub fn o_to_string(val: &std::ffi::OsString) -> Result<std::string::String, std::io::Error> {
match val.clone().into_string() {
Ok(value) => Ok(value),