#!/bin/bash
set -eu

version=0.5.0

if command -v rustfmt >/dev/null; then
  if [[ $(rustfmt --version) = "$version" ]]; then
    echo "--> Detected rustfmt version $version, skipping install"
    exit 0
  fi
fi

cargo install --vers $version rustfmt

#!/bin/bash
set -eu

version=0.6.0

if command -v rustfmt >/dev/null; then
  if [[ $(rustfmt --version) = "$version" ]]; then
    echo "--> Detected rustfmt version $version, skipping install"
    exit 0
  fi
fi

cargo install --vers $version rustfmt

Upgrade to lint with rustfmt 0.6.0.
[ci/rustfmt] Upgrade to lint with rustfmt 0.6.0.

Signed-off-by: Fletcher Nichol <77a0fd9e8048bbacd11af4e957bc6ff03b549f49@nichol.ca>
