#!/bin/sh

set -eu

cargo fmt

if ! cargo clippy --all-targets -- -D warnings
then
    echo "There are some clippy issues."
    exit 1
fi
