Skip to content

Commit

Permalink
Merge pull request #771 from jaytaph/clippy-fix-2
Browse files Browse the repository at this point in the history
Fixed clippy error on stable
  • Loading branch information
jaytaph authored Jan 13, 2025
2 parents b19d8ae + cda73a7 commit 30387ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/gosub_css3/src/parser/url.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
3 changes: 1 addition & 2 deletions crates/gosub_html5/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 30387ae

Please sign in to comment.