just: Add just fmt

We already have a `just` command to check the formatting, add one to run
the formatter. Use the more terse `just fmt` although the difference
from `just format` is not super obvious it is documented in the default
output of `just`.
This commit is contained in:
Tobin C. Harding 2024-04-11 11:47:08 +10:00
parent 8a09f142a9
commit e565e06b0c
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 4 additions and 0 deletions

View File

@ -13,6 +13,10 @@ check:
lint:
cargo +$(cat ./nightly-version) clippy --workspace --all-targets --all-features -- --deny warnings
# Run cargo fmt
fmt:
cargo +$(cat ./nightly-version) fmt --all
# Check the formatting
format:
cargo +$(cat ./nightly-version) fmt --all --check