diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2020-03-05 20:18:58 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2020-03-05 20:18:58 +0100 |
commit | a0bad9c82337ab7dd273a7bd3d2393541aa2cb74 (patch) | |
tree | c6c571da4aae32b18c539a850d7f740b0c3a60b5 /src/parser/mod.rs | |
parent | 13b22a534c6adc2f6dc6e651c3c69bd878dc6c0f (diff) | |
parent | bc585647159fac0b7d2d4e147b50c44555fa0f79 (diff) |
Merge branch 'thiserror'
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/parser/mod.rs')
-rw-r--r-- | src/parser/mod.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/parser/mod.rs b/src/parser/mod.rs index c6483b4..88d0020 100644 --- a/src/parser/mod.rs +++ b/src/parser/mod.rs @@ -49,8 +49,8 @@ use nom::IResult; mod timetype; mod iterator; -use failure::Fallible as Result; -use error::ErrorKind as KEK; +use error::Result; +use error::Error; use iter::Iter; use timetype::IntoTimeType; use parser::timetype::timetype; @@ -71,8 +71,8 @@ pub fn parse(s: &str) -> Result<Parsed> { IResult::Done(_, Ok(o)) => Ok(o), IResult::Done(_, Err(e)) => Err(e), IResult::Error(e) => Err(e).map_err(From::from), - IResult::Incomplete(Needed::Unknown) => Err(KEK::UnknownParserError.into()), - IResult::Incomplete(Needed::Size(_)) => Err(KEK::UnknownParserError.into()), + IResult::Incomplete(Needed::Unknown) => Err(Error::UnknownParserError), + IResult::Incomplete(Needed::Size(_)) => Err(Error::UnknownParserError), } } |