Add a little From helper for edn::parse::ParseError. Not used yet.
This commit is contained in:
parent
2592506288
commit
859d4bc825
1 changed files with 6 additions and 0 deletions
|
@ -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>;
|
||||
|
||||
|
|
Loading…
Reference in a new issue