From e565e06b0c84c81a5b8c7d46a795f8f218dfb9f8 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Thu, 11 Apr 2024 11:47:08 +1000 Subject: [PATCH] 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`. --- justfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/justfile b/justfile index b73a68203..22dbfbc9a 100644 --- a/justfile +++ b/justfile @@ -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