Satisfy clippy
This commit is contained in:
parent
190e00ed62
commit
f08eda2758
1 changed files with 3 additions and 4 deletions
|
|
@ -58,10 +58,9 @@ pub fn is_valid_raw_text(tag_name: &str, text: &str) -> bool {
|
||||||
// "[...] followed by characters that case-insensitively match the tag
|
// "[...] followed by characters that case-insensitively match the tag
|
||||||
// name of the element [...]"
|
// name of the element [...]"
|
||||||
//
|
//
|
||||||
// Note: Since we know that tag names are ascii-only, we can convert
|
// Note: Since we know that tag names are ascii-only, we can use an
|
||||||
// both to lowercase for a case-insensitive comparison without weird
|
// ASCII-based case insensitive comparison without unicode shenanigans.
|
||||||
// unicode shenanigans.
|
if !potential_tag_name.eq_ignore_ascii_case(tag_name) {
|
||||||
if potential_tag_name.to_ascii_lowercase() != tag_name.to_ascii_lowercase() {
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue