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