cargo fmt

在 Rust 项目中对所有源文件运行 rustfmt。 更多信息:https://github.com/rust-lang/rustfmt.

cargo fmt

cargo fmt --check

cargo fmt -- {{rustfmt参数}}