From 3223fc11fe048d3a47edb6f4e6c809b7900e2556 Mon Sep 17 00:00:00 2001 From: lumi Date: Mon, 22 May 2017 16:15:26 +0200 Subject: [PATCH] this will already get auto-dereferenced --- src/convert.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/convert.rs b/src/convert.rs index fb6fbfb0..ebca8e2a 100644 --- a/src/convert.rs +++ b/src/convert.rs @@ -102,7 +102,7 @@ impl<'a> IntoAttributeValue for &'a String { impl<'a> IntoAttributeValue for &'a str { fn into_attribute_value(self) -> Option { - Some((*self).to_owned()) + Some(self.to_owned()) } }