From fa73bbbb3a72a68c340938d485cee849243c9fcf Mon Sep 17 00:00:00 2001 From: xxchan Date: Wed, 19 Jul 2023 12:26:33 +0200 Subject: [PATCH] update --- Contributing.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Contributing.md b/Contributing.md index f9a8d37e6e1..69a2c76369f 100644 --- a/Contributing.md +++ b/Contributing.md @@ -103,10 +103,10 @@ To run `rustfmt` on a file: cargo run --bin rustfmt -- path/to/file.rs ``` -If you want to test modified `cargo-fmt`, or run `rustfmt` on the whole project: +If you want to test modified `cargo-fmt`, or run `rustfmt` on the whole project (You may need to build rustfmt first): ``` -cargo build --bin rustfmt && RUSTFMT="./target/debug/rustfmt" cargo run --bin cargo-fmt -- --manifest-path path/to/project/you/want2test/Cargo.toml +RUSTFMT="./target/debug/rustfmt" cargo run --bin cargo-fmt -- --manifest-path path/to/project/you/want2test/Cargo.toml ``` ### Version-gate formatting changes