Skip to content
Snippets Groups Projects
Commit 54bb99e2 authored by Bryan Chen's avatar Bryan Chen
Browse files

use stable rustfmt

parent dae062fd
No related branches found
No related tags found
No related merge requests found
...@@ -22,7 +22,7 @@ jobs: ...@@ -22,7 +22,7 @@ jobs:
target: wasm32-unknown-unknown target: wasm32-unknown-unknown
default: true default: true
- name: Check format - name: Check format
run: cargo fmt --all -- --check run: cargo +stable fmt --all -- --check
- name: Build - name: Build
run: cargo build --locked run: cargo build --locked
- name: Run tests - name: Run tests
......
...@@ -6,7 +6,7 @@ REPO_ROOT_DIR="$(git rev-parse --show-toplevel)" ...@@ -6,7 +6,7 @@ REPO_ROOT_DIR="$(git rev-parse --show-toplevel)"
files=$((git diff --cached --name-only --diff-filter=ACMR | grep -Ei "\.rs$") || true) files=$((git diff --cached --name-only --diff-filter=ACMR | grep -Ei "\.rs$") || true)
if [ ! -z "${files}" ]; then if [ ! -z "${files}" ]; then
cargo fmt --all cargo +stable fmt --all
git add $(echo "$files" | paste -s -d " " -) git add $(echo "$files" | paste -s -d " " -)
fi fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment