From 56b7785942f61d8dd2a57140dc3e121ebf372765 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Thu, 25 May 2017 01:04:51 +0100 Subject: [PATCH] delay: Remove clones. --- src/delay.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/delay.rs b/src/delay.rs index 08b406c5..19b1a495 100644 --- a/src/delay.rs +++ b/src/delay.rs @@ -48,9 +48,9 @@ impl Into 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() } }