rustfmt
Tool for formatting Rust source code.
- Format a file, overwriting the original file in-place:
rustfmt {source.rs}
- Check a file for formatting and display any changes on the console:
rustfmt --check {source.rs}
- Backup any modified files before formatting (the original file is renamed with a `.bk` extension):
rustfmt --backup {source.rs}
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).