aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib.rs b/src/lib.rs
index a871788..537d876 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -31,7 +31,7 @@ impl Calculator {
}
}
-pub enum Operator {
+enum Operator {
Add,
Sub,
Mul,
@@ -40,7 +40,7 @@ pub enum Operator {
}
impl Operator {
- pub fn parse(c: char) -> Result<Self, ParseOperatorError> {
+ fn parse(c: char) -> Result<Self, ParseOperatorError> {
match c {
'+' => Ok(Self::Add),
'-' => Ok(Self::Sub),
@@ -52,7 +52,7 @@ impl Operator {
}
}
-pub struct ParseOperatorError(char);
+struct ParseOperatorError(char);
enum Function {
Sin,