diff --git a/crates/gosub_css3/src/parser/url.rs b/crates/gosub_css3/src/parser/url.rs index 71e40046..b64b620e 100644 --- a/crates/gosub_css3/src/parser/url.rs +++ b/crates/gosub_css3/src/parser/url.rs @@ -11,7 +11,7 @@ impl Css3<'_> { let loc = self.tokenizer.current_location(); let name = self.consume_function()?; - if name.to_ascii_lowercase() != "url" { + if !name.eq_ignore_ascii_case("url") { return Err(CssError::with_location( format!("Expected url, got {:?}", name).as_str(), self.tokenizer.current_location(), diff --git a/crates/gosub_html5/src/parser.rs b/crates/gosub_html5/src/parser.rs index 7168b74a..93a3ca04 100644 --- a/crates/gosub_html5/src/parser.rs +++ b/crates/gosub_html5/src/parser.rs @@ -2616,8 +2616,7 @@ impl<'a, C: HasDocument> Html5Parser<'a, C> { { if ["h1", "h2", "h3", "h4", "h5", "h6"] .iter() - .map(|tag| self.is_in_scope(tag, HTML_NAMESPACE, Scope::Regular)) - .any(|res| res) + .any(|tag| self.is_in_scope(tag, HTML_NAMESPACE, Scope::Regular)) { self.generate_implied_end_tags(Some(name), false);