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;
|
||||
|
||||
mod evaluate;
|
||||
pub mod from_str;
|
||||
mod eval;
|
||||
pub mod parse;
|
||||
#[cfg(test)]
|
||||
mod tests;
|
||||
|
||||
#[derive(Clone, Debug, thiserror::Error)]
|
||||
pub enum Error {
|
||||
#[error("{0}")]
|
||||
Parsing(#[from] from_str::Error),
|
||||
Parsing(#[from] parse::Error),
|
||||
#[error("{0}")]
|
||||
Evaluation(#[from] evaluate::Error),
|
||||
Evaluation(#[from] eval::Error),
|
||||
}
|
||||
|
||||
/// helper function to parse to Nodes and immediately evaluate
|
||||
|
|
|
|||
Loading…
Reference in a new issue