Pre: Do not re-export EdnParseError from core
This commit is contained in:
parent
30f1304c3a
commit
aea988ff55
2 changed files with 7 additions and 5 deletions
|
@ -51,7 +51,6 @@ pub use edn::{
|
|||
|
||||
pub use edn::parse::{
|
||||
parse_query,
|
||||
ParseError as EdnParseError,
|
||||
};
|
||||
|
||||
pub use cache::{
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue