From cb041f208a5dc9abd74199d54cbaaa805db2d9a6 Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Tue, 15 Nov 2016 19:37:53 +0100 Subject: Remove explicit clone impl --- src/vobject/lib.rs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/vobject/lib.rs b/src/vobject/lib.rs index 72096c6..b892fd9 100644 --- a/src/vobject/lib.rs +++ b/src/vobject/lib.rs @@ -13,6 +13,7 @@ use std::fmt; use std::error::Error; +#[derive(Clone)] pub struct Property { /// Key in component. pub name: String, @@ -45,17 +46,6 @@ impl Property { } } -impl Clone for Property { - fn clone(&self) -> Self { - Property { - name: self.name.clone(), - params: self.params.clone(), - raw_value: self.raw_value.clone(), - prop_group: self.prop_group.clone() - } - } -} - pub struct Component { /// The name of the component, such as `VCARD` or `VEVENT`. pub name: String, -- cgit v1.2.3