diff options
author | Rosemary Ajayi <okhuomonajayi54@gmail.com> | 2024-03-31 23:15:13 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-31 23:15:13 +0000 |
commit | 00c4d798c9619e068119db02910ed80ad9df937b (patch) | |
tree | b14cd00919e48761f886e2d1096cee84621e740d /components/script/dom/htmlscriptelement.rs | |
parent | 9401102691db1388dfd2e4d7da5ffb69e8c28beb (diff) | |
download | servo-00c4d798c9619e068119db02910ed80ad9df937b.tar.gz servo-00c4d798c9619e068119db02910ed80ad9df937b.zip |
clippy: Fix a few problems in `components/script/dom` (#31955)
* fixed various clippy warnings
* fixed various clippy warnings
* fixed various clippy warnings
Diffstat (limited to 'components/script/dom/htmlscriptelement.rs')
-rw-r--r-- | components/script/dom/htmlscriptelement.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/components/script/dom/htmlscriptelement.rs b/components/script/dom/htmlscriptelement.rs index 2e157a896d9..3bc1d35b9b7 100644 --- a/components/script/dom/htmlscriptelement.rs +++ b/components/script/dom/htmlscriptelement.rs @@ -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); } |