diff options
author | Markus Unterwaditzer <markus@unterwaditzer.net> | 2016-11-15 19:37:53 +0100 |
---|---|---|
committer | Markus Unterwaditzer <markus@unterwaditzer.net> | 2016-11-15 19:37:53 +0100 |
commit | cb041f208a5dc9abd74199d54cbaaa805db2d9a6 (patch) | |
tree | 1c4c184aba4f564811ab4b99de139d7a1fb9d796 | |
parent | beb98a2860df7703622c33140661a244d53a278d (diff) |
Remove explicit clone impl
-rw-r--r-- | src/vobject/lib.rs | 12 |
1 files changed, 1 insertions, 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, |