From 54bb99e22139c49b268ec849c7ac827c3cf09933 Mon Sep 17 00:00:00 2001
From: Bryan Chen <xlchen1291@gmail.com>
Date: Wed, 30 Oct 2019 14:50:21 +1300
Subject: [PATCH] use stable rustfmt

---
 .github/workflows/test.yml | 2 +-
 githooks/pre-commit        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 69b7fd0..ac4ceb9 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -22,7 +22,7 @@ jobs:
         target: wasm32-unknown-unknown
         default: true
     - name: Check format
-      run: cargo fmt --all -- --check
+      run: cargo +stable fmt --all -- --check
     - name: Build
       run: cargo build --locked
     - name: Run tests
diff --git a/githooks/pre-commit b/githooks/pre-commit
index a70dd02..63767e9 100755
--- a/githooks/pre-commit
+++ b/githooks/pre-commit
@@ -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)
 if [ ! -z "${files}" ]; then
-    cargo fmt --all
+    cargo +stable fmt --all
     git add $(echo "$files" | paste -s -d " " -)
 fi
 
-- 
GitLab