Skip to content

Commit

Permalink
rework imports
Browse files Browse the repository at this point in the history
  • Loading branch information
vic1707 committed Oct 31, 2023
1 parent bfc29dd commit 1c8c8df
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 10 deletions.
3 changes: 1 addition & 2 deletions src/element/binop.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
/* Built-in imports */
use core::fmt;
/* Crate imports */
use super::Element;
use crate::token::Operator;
use crate::{element::Element, token::Operator};

#[derive(Debug, PartialOrd)]
pub struct BinOp<'a> {
Expand Down
3 changes: 1 addition & 2 deletions src/element/function_call.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
/* Built-in imports */
use core::fmt;
/* Crate imports */
use super::Element;
use crate::token::Function;
use crate::{element::Element, token::Function};

#[derive(Debug, PartialEq, PartialOrd)]
pub struct FunctionCall<'a> {
Expand Down
6 changes: 4 additions & 2 deletions src/element/simplify.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/* Crate imports */
use super::{BinOp, Element, FunctionCall, UnOp};
use crate::token::Operator;
use crate::{
element::{BinOp, Element, FunctionCall, UnOp},
token::Operator,
};

pub trait Simplify<'a> {
fn simplify_for(self, var: (&str, f64)) -> Element<'a>;
Expand Down
3 changes: 1 addition & 2 deletions src/element/unop.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
/* Built-in imports */
use core::fmt;
/* Crate imports */
use super::Element;
use crate::token::Operator;
use crate::{element::Element, token::Operator};

#[derive(Debug, PartialEq, PartialOrd)]
pub struct UnOp<'a> {
Expand Down
3 changes: 1 addition & 2 deletions src/token/identifier.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
/* Built-in imports */
use core::f64;
/* Crate imports */
use super::Function;
use crate::utils::built_in_functions;
use crate::{token::Function, utils::built_in_functions};

#[derive(Debug, PartialEq, PartialOrd)]
pub enum Identifier<'a> {
Expand Down

0 comments on commit 1c8c8df

Please sign in to comment.