summaryrefslogtreecommitdiffstats
path: root/src/vcard.rs
diff options
context:
space:
mode:
authorBen Boeckel <mathstuf@gmail.com>2020-04-08 22:44:04 -0400
committerBen Boeckel <mathstuf@gmail.com>2020-04-09 10:32:09 -0400
commitcd1c566c8a68b097235e57267b8106ceee150e2a (patch)
tree01210dab6449e5999c4fffb8f70ebec481404c09 /src/vcard.rs
parent463bac13f984892f041a13184e1a651d00cf3af8 (diff)
error: remove the Result type alias
Instead, make a local type alias that can be used within the crate, but avoid the need to export yet another symbol.
Diffstat (limited to 'src/vcard.rs')
-rw-r--r--src/vcard.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vcard.rs b/src/vcard.rs
index 5a4d980..1729ede 100644
--- a/src/vcard.rs
+++ b/src/vcard.rs
@@ -22,7 +22,7 @@ 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)
@@ -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)