Skip to content

Commit

Permalink
rustfmt: Support multi package projects
Browse files Browse the repository at this point in the history
  • Loading branch information
roberth committed Mar 19, 2024
1 parent e8dc1b4 commit d43e485
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 d43e485

Please sign in to comment.