mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Replace many uses of to_ascii_lowercase() by make_ascii_lowercase()
This commit is contained in:
parent
67cbda4be3
commit
105d990845
7 changed files with 32 additions and 23 deletions
|
@ -489,7 +489,9 @@ impl HTMLScriptElement {
|
|||
},
|
||||
Some(ref s) => {
|
||||
debug!("script language={}", *s);
|
||||
SCRIPT_JS_MIMES.contains(&&*format!("text/{}", s).to_ascii_lowercase())
|
||||
let mut language = format!("text/{}", s);
|
||||
language.make_ascii_lowercase();
|
||||
SCRIPT_JS_MIMES.contains(&&*language)
|
||||
},
|
||||
None => {
|
||||
debug!("no script type or language, inferring js");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue