diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2023-02-09 15:40:41 -0330 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2023-02-09 15:40:41 -0330 |
| commit | 237685f6cae5f79cf84422617614aaa96699506c (patch) | |
| tree | 0bb3a3bf9a05414482d0e086a4593ef453567ebb | |
| parent | b20026939f17469715e16d6738eefad135eccfa1 (diff) | |
| download | pfc-237685f6cae5f79cf84422617614aaa96699506c.zip | |
remove unnecessary pub
| -rw-r--r-- | src/lib.rs | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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, |