clippy
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user