From 237685f6cae5f79cf84422617614aaa96699506c Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Thu, 9 Feb 2023 15:40:41 -0330 Subject: remove unnecessary pub --- src/lib.rs | 6 +++--- 1 file 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 { + fn parse(c: char) -> Result { match c { '+' => Ok(Self::Add), '-' => Ok(Self::Sub), @@ -52,7 +52,7 @@ impl Operator { } } -pub struct ParseOperatorError(char); +struct ParseOperatorError(char); enum Function { Sin, -- cgit v1.2.3