mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
clippy: Fix a few problems in components/script/dom
(#31955)
* fixed various clippy warnings * fixed various clippy warnings * fixed various clippy warnings
This commit is contained in:
parent
9401102691
commit
00c4d798c9
5 changed files with 7 additions and 9 deletions
|
@ -1186,9 +1186,7 @@ impl HTMLScriptElement {
|
|||
(Some(ref ty), _) => {
|
||||
debug!("script type={}", &***ty);
|
||||
|
||||
if ty.to_ascii_lowercase().trim_matches(HTML_SPACE_CHARACTERS) ==
|
||||
String::from("module")
|
||||
{
|
||||
if ty.to_ascii_lowercase().trim_matches(HTML_SPACE_CHARACTERS) == "module" {
|
||||
return Some(ScriptType::Module);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue