aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/errors.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/errors.rs b/src/errors.rs
index 431e6e4..e7d84c2 100644
--- a/src/errors.rs
+++ b/src/errors.rs
@@ -1,19 +1,19 @@
use std::io;
use std::num::ParseIntError;
-use ical::parser;
+use ical::parser::ParserError;
use toml;
#[derive(Debug)]
pub enum EventError {
- IcalError(parser::errors::Error),
+ IcalError(ParserError),
IntError(ParseIntError),
StatusError,
FreqError,
BydayError,
}
-impl From<parser::errors::Error> for EventError {
- fn from(err: parser::errors::Error) -> EventError {
+impl From<ParserError> for EventError {
+ fn from(err: ParserError) -> EventError {
EventError::IcalError(err)
}
}