#!/bin/bash

set -e

if which cargo-fmt >/dev/null 2>&1; then
    echo '+cargo fmt -- --check'
    cargo fmt -- --check
fi
