From cda73a77d8cd8f95eb125df15165598691bf1dab Mon Sep 17 00:00:00 2001 From: Joshua Thijssen Date: Mon, 13 Jan 2025 14:21:36 +0100 Subject: [PATCH] Fixed clippy error on stable --- crates/gosub_css3/src/parser/url.rs | 2 +- crates/gosub_html5/src/parser.rs | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/crates/gosub_css3/src/parser/url.rs b/crates/gosub_css3/src/parser/url.rs index 71e400461..b64b620e1 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 7168b74a9..93a3ca042 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);