simplify &x.into_iter() to x.iter()
This commit is contained in:
parent
b51f41fe34
commit
67b79e92f9
|
@ -230,8 +230,8 @@ pub fn walk_and_embed_assets(
|
||||||
name: QualName::new(None, ns!(), local_name!("src")),
|
name: QualName::new(None, ns!(), local_name!("src")),
|
||||||
value: Tendril::from_slice(TRANSPARENT_PIXEL),
|
value: Tendril::from_slice(TRANSPARENT_PIXEL),
|
||||||
});
|
});
|
||||||
} else if let Some((dataurl, _)) = (&found_datasrc)
|
} else if let Some((dataurl, _)) = found_datasrc
|
||||||
.into_iter()
|
.iter()
|
||||||
.chain(&found_src) // Give dataurl priority
|
.chain(&found_src) // Give dataurl priority
|
||||||
.map(|attr| attr.value.trim())
|
.map(|attr| attr.value.trim())
|
||||||
.filter(|src| !src.is_empty()) // Ignore empty srcs
|
.filter(|src| !src.is_empty()) // Ignore empty srcs
|
||||||
|
|
Loading…
Reference in New Issue