#!/bin/sh

set -e

echo "linting code..."
cargo +nightly clippy -- -Dwarnings
echo "formatting the code..."
cargo +nightly fmt
git add -A .