docs: don't recommend running cargo fmt in the background

Running `cargo fmt` while you're working in an editor means that you
may lose changes because of a race:

1. Your editor reads version X of file
2. `cargo fmt` reads version X
3. You save version Y from your editor
4. `cargo fmt` saves version Z, replacing Y
This commit is contained in:
Martin von Zweigbergk 2023-01-12 11:00:10 -08:00 committed by Martin von Zweigbergk
parent a1591477bb
commit 82829813d6

View file

@ -80,8 +80,9 @@ One-time setup:
During development (adapt according to your preference):
cargo watch --ignore '.jj/**' -s \
'cargo +nightly fmt && cargo clippy --workspace --all-targets \
'cargo clippy --workspace --all-targets \
&& cargo +1.60 check --workspace --all-targets'
cargo +nightly fmt # Occasionally
cargo nextest run --workspace # Occasionally
cargo insta test --workspace # Occasionally