Rustfmt
By default, Rustfmt uses a style which conforms to the Rust style guide that has been formalized through the style RFC process.
rustup update # udpate rustup and compiler
rustup component add rustfmt # install rustfmt
cargo fmt # run rustfmt