diff --git a/.githooks/pre-commit b/.githooks/pre-commit new file mode 100755 index 00000000..f4dfc536 --- /dev/null +++ b/.githooks/pre-commit @@ -0,0 +1,5 @@ +#!/bin/sh +cargo +nightly fmt --all + +# stage any formatting changes +git add -u