data_forms, ibr, message, presence, roster: Always use into_iter.

This commit is contained in:
Emmanuel Gil Peyrot 2017-07-20 23:09:22 +01:00
commit 5df585ca40
5 changed files with 7 additions and 7 deletions

View file

@ -72,7 +72,7 @@ impl From<Field> for Element {
.attr("label", field.label)
.append(if field.required { Some(Element::builder("required").ns(ns::DATA_FORMS).build()) } else { None })
.append(field.options)
.append(field.values.iter().map(|value| {
.append(field.values.into_iter().map(|value| {
Element::builder("value").ns(ns::DATA_FORMS).append(value).build()
}).collect::<Vec<_>>())
.append(field.media)