summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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,