diff --git a/crates/gosub_css3/src/parser/url.rs b/crates/gosub_css3/src/parser/url.rs index 7626494b..b64b620e 100644 --- a/crates/gosub_css3/src/parser/url.rs +++ b/crates/gosub_css3/src/parser/url.rs @@ -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; @@ -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(),