From d43e4853f578739ac2264eadcd18faa5aeb41889 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Tue, 19 Mar 2024 16:28:53 +0100 Subject: [PATCH] rustfmt: Support multi package projects --- modules/hooks.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/hooks.nix b/modules/hooks.nix index 5ed6884a..43b888d0 100644 --- a/modules/hooks.nix +++ b/modules/hooks.nix @@ -2706,7 +2706,7 @@ in description = "Format Rust code."; package = wrapper; packageOverrides = { cargo = tools.cargo; rustfmt = tools.rustfmt; }; - entry = "${hooks.rustfmt.package}/bin/cargo-fmt fmt ${cargoManifestPathArg} -- --color always"; + entry = "${hooks.rustfmt.package}/bin/cargo-fmt fmt ${cargoManifestPathArg} --all -- --color always"; files = "\\.rs$"; pass_filenames = false; };