diff options
author | Dominick Allen <dominick.allen1989@gmail.com> | 2020-06-28 20:17:12 -0500 |
---|---|---|
committer | Dominick Allen <dominick.allen1989@gmail.com> | 2020-06-28 20:17:12 -0500 |
commit | d037aaeea1b82903ffd1cffcb9825dedf98f494e (patch) | |
tree | e5b3411b6d0d25d8abc65684f280489af4d2ec06 /src/lib/types.rs | |
parent | fd85e096e57d2fad1035f4f5987a282edb2996fc (diff) |
Diffstat (limited to 'src/lib/types.rs')
-rw-r--r-- | src/lib/types.rs | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/lib/types.rs b/src/lib/types.rs index 6b17b26..0cf8b6d 100644 --- a/src/lib/types.rs +++ b/src/lib/types.rs @@ -18,16 +18,16 @@ pub enum Op { impl fmt::Display for Op { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match self { - &Op::Add => write!(f, "+"), - &Op::Sub => write!(f, "-"), - &Op::Mul => write!(f, "*"), - &Op::Div => write!(f, "/"), - &Op::Modulo => write!(f, "%"), - &Op::Equals => write!(f, "="), - &Op::Greater => write!(f, ">"), - &Op::GrEqTo => write!(f, ">="), - &Op::Less => write!(f, "<"), - &Op::LsEqTo => write!(f, "<="), + Op::Add => write!(f, "+"), + Op::Sub => write!(f, "-"), + Op::Mul => write!(f, "*"), + Op::Div => write!(f, "/"), + Op::Modulo => write!(f, "%"), + Op::Equals => write!(f, "="), + Op::Greater => write!(f, ">"), + Op::GrEqTo => write!(f, ">="), + Op::Less => write!(f, "<"), + Op::LsEqTo => write!(f, "<="), } } } |