delay: Remove clones.

This commit is contained in:
Emmanuel Gil Peyrot 2017-05-25 01:04:51 +01:00
parent f08c81382c
commit 56b7785942

View file

@ -48,9 +48,9 @@ impl Into<Element> for Delay {
fn into(self) -> Element {
Element::builder("delay")
.ns(ns::DELAY)
.attr("from", self.from.clone().and_then(|value| Some(String::from(value))))
.attr("stamp", self.stamp.clone())
.append(self.data.clone())
.attr("from", self.from.and_then(|value| Some(String::from(value))))
.attr("stamp", self.stamp)
.append(self.data)
.build()
}
}