chore: move cargo fmt to lint-staged from pre-commit (#5150)

This commit is contained in:
LongYinan 2023-12-04 06:42:54 +00:00
parent 91f3149148
commit 33c53217c3
No known key found for this signature in database
GPG Key ID: 30B1140CE1C07C99
2 changed files with 4 additions and 1 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
yarn lint-staged && yarn lint:ox && cargo fmt --all && git add .
yarn lint-staged && yarn lint:ox

View File

@ -50,6 +50,9 @@
],
"*.toml": [
"taplo format"
],
"*.rs": [
"cargo fmt --"
]
},
"devDependencies": {