From 67b79e92f9de9ae1a9ffd98d12d08aa2dd9a85f8 Mon Sep 17 00:00:00 2001 From: rhysd Date: Fri, 10 Jan 2020 14:45:02 +0900 Subject: [PATCH] simplify &x.into_iter() to x.iter() --- src/html.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/html.rs b/src/html.rs index 30e3355..62d67bc 100644 --- a/src/html.rs +++ b/src/html.rs @@ -230,8 +230,8 @@ pub fn walk_and_embed_assets( name: QualName::new(None, ns!(), local_name!("src")), value: Tendril::from_slice(TRANSPARENT_PIXEL), }); - } else if let Some((dataurl, _)) = (&found_datasrc) - .into_iter() + } else if let Some((dataurl, _)) = found_datasrc + .iter() .chain(&found_src) // Give dataurl priority .map(|attr| attr.value.trim()) .filter(|src| !src.is_empty()) // Ignore empty srcs