From 7bf391957deb4bf3578e39f2148428dbed49eae6 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Mon, 13 Jan 2020 21:32:08 -0500 Subject: Adding a better rust formatter. --- ui/package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ui/package.json') diff --git a/ui/package.json b/ui/package.json index 987d4c42..a2767e4a 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": [ -- cgit v1.2.3