From 00c4d798c9619e068119db02910ed80ad9df937b Mon Sep 17 00:00:00 2001 From: Rosemary Ajayi Date: Sun, 31 Mar 2024 23:15:13 +0000 Subject: clippy: Fix a few problems in `components/script/dom` (#31955) * fixed various clippy warnings * fixed various clippy warnings * fixed various clippy warnings --- components/script/dom/htmlscriptelement.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'components/script/dom/htmlscriptelement.rs') 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); } -- cgit v1.2.3