aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2023-02-09 15:40:41 -0330
committerSam Anthony <sam@samanthony.xyz>2023-02-09 15:40:41 -0330
commit237685f6cae5f79cf84422617614aaa96699506c (patch)
tree0bb3a3bf9a05414482d0e086a4593ef453567ebb
parentb20026939f17469715e16d6738eefad135eccfa1 (diff)
downloadpfc-237685f6cae5f79cf84422617614aaa96699506c.zip
remove unnecessary pub
-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,