diff options
author | Markus Unterwaditzer <markus@unterwaditzer.net> | 2015-01-15 17:28:22 +0100 |
---|---|---|
committer | Markus Unterwaditzer <markus@unterwaditzer.net> | 2015-01-15 17:28:22 +0100 |
commit | 1758605f7b25fa125c7a2a6b5c5cc94b9f5849fa (patch) | |
tree | 1caa799426da83e9e78e01306b0a41374b5558a9 /src/vobject/lib.rs | |
parent | 746fb5818ac77b1261ab11466f6fed2e279baaec (diff) |
Allow users to generate own data
Diffstat (limited to 'src/vobject/lib.rs')
-rw-r--r-- | src/vobject/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vobject/lib.rs b/src/vobject/lib.rs index 4eb6a89..fa28c7f 100644 --- a/src/vobject/lib.rs +++ b/src/vobject/lib.rs @@ -22,7 +22,7 @@ pub struct Property { } impl Property { - fn new(params: HashMap<String, String>, raw_value: String, prop_group: Option<String>) -> Property { + pub fn new(params: HashMap<String, String>, raw_value: String, prop_group: Option<String>) -> Property { Property { params: params, raw_value: raw_value, @@ -49,7 +49,7 @@ pub struct Component { } impl Component { - fn new(name: String) -> Component { + pub fn new(name: String) -> Component { Component { name: name, props: HashMap::new(), |