Clean-up and refactor
Clean-up and refactor by
- Removing tons of unneeded conversions
- Collapsing/condensing conditionals
- Using chars instead of strings
- Removing unneeded lifetime annotations
- Using
is_empty()
which is more concise than comparing to zero. - Removing unneeded borrow patterns by deref'ing the matching expression
- Other performance enhancing code from good practices