Add a little From helper for edn::parse::ParseError. Not used yet.

This commit is contained in:
Richard Newman 2017-01-25 17:55:53 -08:00
parent 2592506288
commit 859d4bc825

View file

@ -30,6 +30,12 @@ pub enum QueryParseError {
FindParseError(FindParseError),
}
impl From<edn::parse::ParseError> for QueryParseError {
fn from(err: edn::parse::ParseError) -> QueryParseError {
QueryParseError::EdnParseError(err)
}
}
pub type FindParseResult = Result<FindSpec, FindParseError>;
pub type QueryParseResult = Result<FindQuery, QueryParseError>;