mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-18 02:04:19 +00:00
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:
parent
a1591477bb
commit
82829813d6
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue