Skip to content

Commit d43e485

Browse files
committed
rustfmt: Support multi package projects
1 parent e8dc1b4 commit d43e485

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/hooks.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2706,7 +2706,7 @@ in
27062706
description = "Format Rust code.";
27072707
package = wrapper;
27082708
packageOverrides = { cargo = tools.cargo; rustfmt = tools.rustfmt; };
2709-
entry = "${hooks.rustfmt.package}/bin/cargo-fmt fmt ${cargoManifestPathArg} -- --color always";
2709+
entry = "${hooks.rustfmt.package}/bin/cargo-fmt fmt ${cargoManifestPathArg} --all -- --color always";
27102710
files = "\\.rs$";
27112711
pass_filenames = false;
27122712
};

0 commit comments

Comments
 (0)