commit 265ddfa9c9a8aead2c6edb2dca0706d6bc95922b
parent 61905cf313eb0d00e3f6779bafce99dd202ba8ba
Author: Gavin Peacock <gpeacock@adobe.com>
Date: Tue, 9 Aug 2022 16:43:13 -0700
(IGNORE) Update makefile test to use nightly fmt and add fmt script (#103)
Update makefile test to use nightly fmt and add fmt script
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git 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