summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Unterwaditzer <markus@unterwaditzer.net>2016-11-15 19:37:53 +0100
committerMarkus Unterwaditzer <markus@unterwaditzer.net>2016-11-15 19:37:53 +0100
commitcb041f208a5dc9abd74199d54cbaaa805db2d9a6 (patch)
tree1c4c184aba4f564811ab4b99de139d7a1fb9d796
parentbeb98a2860df7703622c33140661a244d53a278d (diff)
Remove explicit clone impl
-rw-r--r--src/vobject/lib.rs12
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,