Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
heygsc authored Jan 13, 2025
2 parents 97d48fd + 30387ae commit e1d2de3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/gosub_css3/src/parser/url.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use crate::node::{Node, NodeType};
use crate::tokenizer::TokenType;
use crate::Css3;
use cow_utils::CowUtils;
use gosub_shared::errors::CssError;
use gosub_shared::errors::CssResult;

Expand All @@ -12,7 +11,7 @@ impl Css3<'_> {
let loc = self.tokenizer.current_location();

let name = self.consume_function()?;
if name.cow_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

0 comments on commit e1d2de3

Please sign in to comment.