delay: Remove clones.
This commit is contained in:
parent
f08c81382c
commit
56b7785942
1 changed files with 3 additions and 3 deletions
|
@ -48,9 +48,9 @@ impl Into<Element> for Delay {
|
||||||
fn into(self) -> Element {
|
fn into(self) -> Element {
|
||||||
Element::builder("delay")
|
Element::builder("delay")
|
||||||
.ns(ns::DELAY)
|
.ns(ns::DELAY)
|
||||||
.attr("from", self.from.clone().and_then(|value| Some(String::from(value))))
|
.attr("from", self.from.and_then(|value| Some(String::from(value))))
|
||||||
.attr("stamp", self.stamp.clone())
|
.attr("stamp", self.stamp)
|
||||||
.append(self.data.clone())
|
.append(self.data)
|
||||||
.build()
|
.build()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue