Pre: Do not re-export EdnParseError from core

This commit is contained in:
Grisha Kruglov 2018-08-08 11:31:00 -07:00
parent 30f1304c3a
commit aea988ff55
2 changed files with 7 additions and 5 deletions

View file

@ -51,7 +51,6 @@ pub use edn::{
pub use edn::parse::{
parse_query,
ParseError as EdnParseError,
};
pub use cache::{

View file

@ -15,10 +15,13 @@ use core_traits::{
};
use mentat_core::{
EdnParseError,
ValueTypeSet,
};
use edn::parse::{
ParseError,
};
use edn::query::{
PlainSymbol,
};
@ -105,11 +108,11 @@ pub enum AlgebrizerError {
InvalidBinding(PlainSymbol, BindingError),
#[fail(display = "{}", _0)]
EdnParseError(#[cause] EdnParseError),
EdnParseError(#[cause] ParseError),
}
impl From<EdnParseError> for AlgebrizerError {
fn from(error: EdnParseError) -> AlgebrizerError {
impl From<ParseError> for AlgebrizerError {
fn from(error: ParseError) -> AlgebrizerError {
AlgebrizerError::EdnParseError(error)
}
}