rustfmt

rustfmt

TLDR

Format a file, overwriting the original file in-place

>_ rustfmt [source.rs]
copy

Check a file for formatting and display any changes on the console

>_ rustfmt --check [source.rs]
copy

Backup any modified files before formatting (the original file is renamed with a .bk extension)

>_ rustfmt --backup [source.rs]
copy

Copied to clipboard
free 100$ digital ocean credit