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