From 265ddfa9c9a8aead2c6edb2dca0706d6bc95922b Mon Sep 17 00:00:00 2001 From: Gavin Peacock Date: Tue, 9 Aug 2022 16:43:13 -0700 Subject: [PATCH] (IGNORE) Update makefile test to use nightly fmt and add fmt script (#103) Update makefile test to use nightly fmt and add fmt script --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f0a758c97..db034056c 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,7 @@ else endif check-format: - cargo fmt -- --check + cargo +nightly fmt -- --check check-docs: cargo doc --no-deps --workspace --all-features @@ -35,6 +35,10 @@ test-wasm: # Run this before pushing a PR to pre-validate test: check-format check-docs clippy test-local test-no-defaults test-wasm +# Auto format code according to standards +fmt: + cargo +nightly fmt + # Builds and views documentation doc: cargo doc --no-deps --open