]> Untitled Git - lemmy.git/commitdiff
Adding a better rust formatter.
authorDessalines <tyhou13@gmx.com>
Tue, 14 Jan 2020 02:32:08 +0000 (21:32 -0500)
committerDessalines <tyhou13@gmx.com>
Tue, 14 Jan 2020 02:32:08 +0000 (21:32 -0500)
ui/package.json

index 987d4c42aa892c8327a78f621eba490a8e02b0e8..a2767e4a525fc1e8b6bcb32203228a9c0fd2b6b8 100644 (file)
@@ -57,7 +57,7 @@
   "engineStrict": true,
   "husky": {
     "hooks": {
-      "pre-commit": "cargo fmt --manifest-path ../server/Cargo.toml && cargo clippy --manifest-path ../server/Cargo.toml --all-targets --all-features -- -D warnings && lint-staged"
+      "pre-commit": "cargo clippy --manifest-path ../server/Cargo.toml --all-targets --all-features -- -D warnings && lint-staged"
     }
   },
   "lint-staged": {
@@ -67,6 +67,7 @@
       "git add"
     ],
     "../server/src/**/*.rs": [
+      "rustfmt --config-path ../server/.rustfmt.toml",
       "git add"
     ],
     "package.json": [