Skip to content

Commit

Permalink
Merge pull request #410 from hercules-ci/rustfmt-all
Browse files Browse the repository at this point in the history
rustfmt: Support multi package projects
  • Loading branch information
domenkozar authored Mar 20, 2024
2 parents e8dc1b4 + d43e485 commit ecef0bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/hooks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down

0 comments on commit ecef0bb

Please sign in to comment.