Skip to content

Commit

Permalink
Fixed deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
vallentin authored and marcusklaas committed Feb 8, 2020
1 parent 32dba3c commit 7a1d855
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/parse.rs
Expand Up @@ -1519,7 +1519,7 @@ fn get_html_end_tag(text_bytes: &[u8]) -> Option<&'static str> {

for (beg_tag, end_tag) in BEGIN_TAGS
.iter()
.zip(["</pre>", "</style>", "</script>"].into_iter())
.zip(["</pre>", "</style>", "</script>"].iter())
{
let tag_len = beg_tag.len();

Expand All @@ -1544,7 +1544,7 @@ fn get_html_end_tag(text_bytes: &[u8]) -> Option<&'static str> {
}
}

for (beg_tag, end_tag) in ST_BEGIN_TAGS.iter().zip(["-->", "?>", "]]>"].into_iter()) {
for (beg_tag, end_tag) in ST_BEGIN_TAGS.iter().zip(["-->", "?>", "]]>"].iter()) {
if text_bytes.starts_with(beg_tag) {
return Some(end_tag);
}
Expand Down

0 comments on commit 7a1d855

Please sign in to comment.