ende76 / brotli-rs

A Brotli implementation in pure and safe Rust
Apache License 2.0
63 stars 19 forks source link

Automatic formatting with rustfmt #13

Closed lenaschoenburg closed 8 years ago

lenaschoenburg commented 8 years ago

Feel free of course to reject such a noisy commit!

lenaschoenburg commented 8 years ago

You are almost right, it's mostly tabs to whitespace. There are some instances where rustfmt split one long line into multiple, nicely aligned lines. While I think that looks a bit nicer, it's probably not worth it.

For future reference, if you're ready to make the switch to whitespace, here is what I did to re-format all rust files in the repo:

$ cargo install --git https://github.com/rust-lang-nursery/rustfmt
$ find . -type f -name '*.rs' -exec rustfmt --write-mode=overwrite {} \;