We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db2a1a4 commit 952ee8fCopy full SHA for 952ee8f
src/tokenizer.rs
@@ -854,7 +854,7 @@ fn to_utf8(string_bytes: Vec<u8>) -> String {
854
855
fn consume_unquoted_url<'a>(tokenizer: &mut Tokenizer<'a>) -> Result<Token<'a>, ()> {
856
857
- for (offset, c) in tokenizer.input[tokenizer.position..].as_bytes().iter().cloned().enumerate() {
+ for (offset, c) in tokenizer.input[tokenizer.position..].bytes().enumerate() {
858
match c {
859
b' ' | b'\t' | b'\n' | b'\r' | b'\x0C' => {},
860
b'"' | b'\'' => return Err(()), // Do not advance
0 commit comments