Skip to content

Commit 30387ae

Browse files
authored
Merge pull request #771 from jaytaph/clippy-fix-2
Fixed clippy error on stable
2 parents b19d8ae + cda73a7 commit 30387ae

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

crates/gosub_css3/src/parser/url.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ impl Css3<'_> {
1111
let loc = self.tokenizer.current_location();
1212

1313
let name = self.consume_function()?;
14-
if name.to_ascii_lowercase() != "url" {
14+
if !name.eq_ignore_ascii_case("url") {
1515
return Err(CssError::with_location(
1616
format!("Expected url, got {:?}", name).as_str(),
1717
self.tokenizer.current_location(),

crates/gosub_html5/src/parser.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2616,8 +2616,7 @@ impl<'a, C: HasDocument> Html5Parser<'a, C> {
26162616
{
26172617
if ["h1", "h2", "h3", "h4", "h5", "h6"]
26182618
.iter()
2619-
.map(|tag| self.is_in_scope(tag, HTML_NAMESPACE, Scope::Regular))
2620-
.any(|res| res)
2619+
.any(|tag| self.is_in_scope(tag, HTML_NAMESPACE, Scope::Regular))
26212620
{
26222621
self.generate_implied_end_tags(Some(name), false);
26232622

0 commit comments

Comments
 (0)