diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/depotfmt.nix | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/tools/depotfmt.nix b/tools/depotfmt.nix index a1caab0e210e..e40001018c37 100644 --- a/tools/depotfmt.nix +++ b/tools/depotfmt.nix @@ -28,6 +28,7 @@ let [formatter.rust] command = "${pkgs.rustfmt}/bin/rustfmt" + options = ["--edition", "2021"] includes = [ "*.rs" ] excludes = [ "users/tazjin/*", @@ -53,10 +54,12 @@ let ''; in depotfmt.overrideAttrs (_: { - passthru.config = config; - passthru.meta.ci.extraSteps.check = { - label = "depot formatting check"; - command = check; - alwaysRun = true; + passthru = { + inherit config check; + meta.ci.extraSteps.check = { + label = "depot formatting check"; + command = check; + alwaysRun = true; + }; }; }) |