probablykasper / cpc

Text calculator with support for units and conversion
https://crates.io/crates/cpc
MIT License
121 stars 14 forks source link

Rustfmt #29

Closed jqnatividad closed 1 year ago

jqnatividad commented 1 year ago

Hi @probablykasper, I know you mentioned that you decided not to use rustfmt because of how it messed up formatting for lookup.rs and units.rs.

So I went ahead and used #[rustfmt::skip] for those modules and applied rustfmt.

Feel free to ignore this PR if you prefer not to use rustfmt at all.

probablykasper commented 1 year ago

Alright looked through the code. I think I'll just take care of it myself, and set the tab width to 2 spaces, then change from spaces to tabs in another commit

I'll skip lexer.rs as well because rustfmt almost doubles the line count there