From 05902f4c17257cddebe650a0c56aa4ec59f73b7a Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Thu, 27 Feb 2025 09:31:26 +0200 Subject: [PATCH] Add `fmt` justfile recipe --- justfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/justfile b/justfile index 8ffafcd..a0e78b9 100644 --- a/justfile +++ b/justfile @@ -32,6 +32,10 @@ run-in-container *extra_args: app-container-prepare build-container-image-debug test *extra_args: RUST_BACKTRACE=1 cargo test {{ extra_args }} +# Formats the code +fmt: + RUST_BACKTRACE=1 cargo fmt --all + # Builds a debug binary (target/debug/*) build-debug *extra_args: RUST_BACKTRACE=1 cargo build {{ extra_args }}