summaryrefslogtreecommitdiffstats
path: root/src/vcard.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/vcard.rs')
-rw-r--r--src/vcard.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vcard.rs b/src/vcard.rs
index 5a4d980..ec750fa 100644
--- a/src/vcard.rs
+++ b/src/vcard.rs
@@ -22,10 +22,10 @@ impl Vcard {
/// Returns an error if the parsed text is not a Vcard (that means that an error is returned
/// also if this is a valid icalendar!)
///
- pub fn build(s: &str) -> Result<Vcard> {
+ pub fn build(s: &str) -> VObjectResult<Vcard> {
parse_component(s)
.and_then(|c| {
- Self::from_component(c).map_err(|_| VObjectErrorKind::NotAVCard)
+ Self::from_component(c).map_err(|_| VObjectError::NotAVCard)
})
}
@@ -154,7 +154,7 @@ impl VcardBuilder {
}
}
- pub fn build(self) -> Result<Vcard> {
+ pub fn build(self) -> VObjectResult<Vcard> {
let mut v = Vcard::default();
v.set_properties(self.properties);
Ok(v)