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::{
|
pub use edn::parse::{
|
||||||
parse_query,
|
parse_query,
|
||||||
ParseError as EdnParseError,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
pub use cache::{
|
pub use cache::{
|
||||||
|
|
|
@ -15,10 +15,13 @@ use core_traits::{
|
||||||
};
|
};
|
||||||
|
|
||||||
use mentat_core::{
|
use mentat_core::{
|
||||||
EdnParseError,
|
|
||||||
ValueTypeSet,
|
ValueTypeSet,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
use edn::parse::{
|
||||||
|
ParseError,
|
||||||
|
};
|
||||||
|
|
||||||
use edn::query::{
|
use edn::query::{
|
||||||
PlainSymbol,
|
PlainSymbol,
|
||||||
};
|
};
|
||||||
|
@ -105,11 +108,11 @@ pub enum AlgebrizerError {
|
||||||
InvalidBinding(PlainSymbol, BindingError),
|
InvalidBinding(PlainSymbol, BindingError),
|
||||||
|
|
||||||
#[fail(display = "{}", _0)]
|
#[fail(display = "{}", _0)]
|
||||||
EdnParseError(#[cause] EdnParseError),
|
EdnParseError(#[cause] ParseError),
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<EdnParseError> for AlgebrizerError {
|
impl From<ParseError> for AlgebrizerError {
|
||||||
fn from(error: EdnParseError) -> AlgebrizerError {
|
fn from(error: ParseError) -> AlgebrizerError {
|
||||||
AlgebrizerError::EdnParseError(error)
|
AlgebrizerError::EdnParseError(error)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue