clippy
This commit is contained in:
parent
4cdd764956
commit
252312b1f7
2
build.rs
2
build.rs
@ -66,7 +66,7 @@ fn main() {
|
||||
|
||||
let mut main_chars: Vec<char> =
|
||||
b"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzsu0123456789?.,!(){}[]-_=+-/<>'\\ :^*`@#$%&|~;"
|
||||
.into_iter()
|
||||
.iter()
|
||||
.map(|c| *c as char)
|
||||
.collect();
|
||||
|
||||
|
||||
@ -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::<String>();
|
||||
|
||||
// If not fully open, return here as buttons cannot yet be displayed, therefore the user is inable to mark it for deletion
|
||||
|
||||
@ -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()
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user