From 7a1d855f262118779fd30ea4e2ef51be212a81ac Mon Sep 17 00:00:00 2001 From: vallentin Date: Sat, 8 Feb 2020 08:28:50 +0100 Subject: [PATCH] Fixed deprecation warning --- src/parse.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/parse.rs b/src/parse.rs index 2f6a7c0b..dba8370b 100644 --- a/src/parse.rs +++ b/src/parse.rs @@ -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(["", "", ""].into_iter()) + .zip(["", "", ""].iter()) { let tag_len = beg_tag.len(); @@ -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); }