#!/usr/bin/env bash
set -euo pipefail

echo "==> cargo fmt --all"
cargo fmt --all
git add -u
echo "     Formatting applied."

echo "==> cargo clippy -- -D warnings"
cargo clippy -- -D warnings
echo "     Lint with clippy."

echo "==> cargo test"
cargo test
echo "     Tests passed."
