summaryrefslogtreecommitdiffstats
path: root/src/icalendar.rs
diff options
context:
space:
mode:
authorBen Boeckel <mathstuf@gmail.com>2020-04-08 23:19:37 -0400
committerBen Boeckel <mathstuf@gmail.com>2020-04-09 10:32:48 -0400
commitd0d8bde43fe1355a740c0f431f7b10f4a2715823 (patch)
tree9ae6ded3369ccdee0878b86a5319ecaeb66aaae7 /src/icalendar.rs
parentf08ee3c272ddf01b1025abb0c8a81fdd15a6bf52 (diff)
error: rename from VObjectErrorKind to VObjectError
The type is a fully-fledged `impl Error` all on its own now.
Diffstat (limited to 'src/icalendar.rs')
-rw-r--r--src/icalendar.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/icalendar.rs b/src/icalendar.rs
index 6a5fea2..4da4802 100644
--- a/src/icalendar.rs
+++ b/src/icalendar.rs
@@ -24,7 +24,7 @@ impl ICalendar {
///
pub fn build(s: &str) -> VObjectResult<ICalendar> {
let c = parse_component(s)?;
- Self::from_component(c).map_err(|_| VObjectErrorKind::NotAnICalendar(s.to_owned()))
+ Self::from_component(c).map_err(|_| VObjectError::NotAnICalendar(s.to_owned()))
}
pub fn empty() -> ICalendar {