diff --git a/build.rs b/build.rs index 8e51d41..4c2f803 100644 --- a/build.rs +++ b/build.rs @@ -66,7 +66,7 @@ fn main() { let mut main_chars: Vec = b"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzsu0123456789?.,!(){}[]-_=+-/<>'\\ :^*`@#$%&|~;" - .into_iter() + .iter() .map(|c| *c as char) .collect(); diff --git a/src/function_manager.rs b/src/function_manager.rs index 7faefe1..681ba19 100644 --- a/src/function_manager.rs +++ b/src/function_manager.rs @@ -118,7 +118,7 @@ impl FunctionManager { // Only keep valid chars new_string = new_string .chars() - .filter(|c| crate::misc::is_valid_char(c)) + .filter(crate::misc::is_valid_char) .collect::(); // If not fully open, return here as buttons cannot yet be displayed, therefore the user is inable to mark it for deletion diff --git a/src/unicode_helper.rs b/src/unicode_helper.rs index 3e1aef5..a49caea 100644 --- a/src/unicode_helper.rs +++ b/src/unicode_helper.rs @@ -3,7 +3,7 @@ pub fn to_unicode_hash(c: char) -> String { c.escape_unicode() .to_string() .replace(r#"\\u{"#, "") - .replace("{", "") - .replace("}", "") + .replace('{', "") + .replace('}', "") .to_uppercase() }