From 0e72baa72c045e4faba23ac760163e134018c91d Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Sun, 19 Mar 2023 12:20:27 -0400 Subject: [PATCH] Add lib entry --- src/calc/entries/matrix.rs | 11 ++++------- src/calc/entries/number.rs | 11 ++++------- src/calc/entries/vector.rs | 11 ++++------- src/lib.rs | 2 ++ 4 files changed, 14 insertions(+), 21 deletions(-) create mode 100644 src/lib.rs diff --git a/src/calc/entries/matrix.rs b/src/calc/entries/matrix.rs index 0eda68f..7cf6173 100644 --- a/src/calc/entries/matrix.rs +++ b/src/calc/entries/matrix.rs @@ -1,11 +1,8 @@ use super::{Entry, Number, Vector, VectorDirection}; -use crate::{ - calc::{ - errors::{CalculatorError, CalculatorResult}, - types::CalculatorAngleMode, - CalculatorDisplayMode, - }, - CalculatorEntry, +use crate::calc::{ + entries::CalculatorEntry, + errors::{CalculatorError, CalculatorResult}, + types::{CalculatorAngleMode, CalculatorDisplayMode}, }; use serde::{Deserialize, Serialize}; use std::fmt; diff --git a/src/calc/entries/number.rs b/src/calc/entries/number.rs index 586f8d5..d2eaca3 100644 --- a/src/calc/entries/number.rs +++ b/src/calc/entries/number.rs @@ -1,11 +1,8 @@ use super::{Entry, Matrix, Vector}; -use crate::{ - calc::{ - errors::{CalculatorError, CalculatorResult}, - types::CalculatorAngleMode, - CalculatorDisplayMode, - }, - CalculatorEntry, +use crate::calc::{ + entries::CalculatorEntry, + errors::{CalculatorError, CalculatorResult}, + types::{CalculatorAngleMode, CalculatorDisplayMode}, }; use serde::{Deserialize, Serialize}; use std::fmt; diff --git a/src/calc/entries/vector.rs b/src/calc/entries/vector.rs index 1f3fb40..6f01110 100644 --- a/src/calc/entries/vector.rs +++ b/src/calc/entries/vector.rs @@ -1,11 +1,8 @@ use super::{Entry, Matrix, Number}; -use crate::{ - calc::{ - errors::{CalculatorError, CalculatorResult}, - types::CalculatorAngleMode, - CalculatorDisplayMode, - }, - CalculatorEntry, +use crate::calc::{ + entries::CalculatorEntry, + errors::{CalculatorError, CalculatorResult}, + types::{CalculatorAngleMode, CalculatorDisplayMode}, }; use serde::{Deserialize, Serialize}; use std::fmt; diff --git a/src/lib.rs b/src/lib.rs new file mode 100644 index 0000000..374e645 --- /dev/null +++ b/src/lib.rs @@ -0,0 +1,2 @@ +pub mod calc; +pub mod event;