commands.sh

cargo fmt

all

Run `rustfmt` on all source files in a Rust project.

More info →

Examples (3)

Format all source files

Check for formatting errors without writing to the files

cargo fmt --check

Pass arguments to each `rustfmt` call

cargo fmt -- rustfmt_args
made by @shridhargupta | data from tldr-pages