From 083fcb9c6c5bc5af02e4659867d9afd764402f77 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Mon, 13 Jan 2020 21:32:08 -0500 Subject: [PATCH] Adding a better rust formatter. --- ui/package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/package.json b/ui/package.json index 987d4c4..a2767e4 100644 --- a/ui/package.json +++ b/ui/package.json @@ -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": [