From: Dessalines Date: Tue, 14 Jan 2020 02:32:08 +0000 (-0500) Subject: Adding a better rust formatter. X-Git-Url: http://these/git/ui/assets/static/git-logo.png?a=commitdiff_plain;h=7bf391957deb4bf3578e39f2148428dbed49eae6;p=lemmy.git Adding a better rust formatter. --- 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": [