refactor: rename modules to nicer names
This commit is contained in:
parent
35da9a0d40
commit
2deabb148e
3 changed files with 4 additions and 4 deletions
|
|
@ -6,17 +6,17 @@ use std::fmt::{Debug, Display};
|
||||||
|
|
||||||
use rug::Float;
|
use rug::Float;
|
||||||
|
|
||||||
mod evaluate;
|
mod eval;
|
||||||
pub mod from_str;
|
pub mod parse;
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests;
|
mod tests;
|
||||||
|
|
||||||
#[derive(Clone, Debug, thiserror::Error)]
|
#[derive(Clone, Debug, thiserror::Error)]
|
||||||
pub enum Error {
|
pub enum Error {
|
||||||
#[error("{0}")]
|
#[error("{0}")]
|
||||||
Parsing(#[from] from_str::Error),
|
Parsing(#[from] parse::Error),
|
||||||
#[error("{0}")]
|
#[error("{0}")]
|
||||||
Evaluation(#[from] evaluate::Error),
|
Evaluation(#[from] eval::Error),
|
||||||
}
|
}
|
||||||
|
|
||||||
/// helper function to parse to Nodes and immediately evaluate
|
/// helper function to parse to Nodes and immediately evaluate
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue