Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Display impls use token formatting (#183)
Deduplicates a bunch of code by having Display impls use the TokenFmt implementations. There were some bugs with the TokenFmt formatting that I had to fix, and some slight differences in their output that required adjusting tests. This also fixes a longstanding bug where there were 2 spaces in the output, like `42 (dimensionless)`. I also got rid of that two-step pattern parsing stuff, it's simpler to iterate the chars of the pattern string instead.
- Loading branch information