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
2 changed files with 4 additions and 1 deletions
+1 -1
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
+3
View File
@@ -50,6 +50,9 @@
],
"*.toml": [
"taplo format"
],
"*.rs": [
"cargo fmt --"
]
},
"devDependencies": {