mirror of https://github.com/eaze/tide-sqlx
meta: update pre-commit
This commit is contained in:
parent
7a0217a1f9
commit
a252312ec8
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
for file in $(git diff --name-only --cached | grep '.rs'); do
|
||||
for file in $(git diff --name-only --cached --diff-filter=d | grep '\.rs$'); do
|
||||
rustfmt --edition 2018 $file # this will NEVER age poorly
|
||||
git add "$file"
|
||||
done
|
||||
|
|
Loading…
Reference in New Issue