From cb33c14ff2b2d36953bd647076a98ecfccd5822f Mon Sep 17 00:00:00 2001 From: aiongg Date: Wed, 11 Nov 2026 16:51:23 +0000 Subject: [PATCH] cl lets cargo fmt --all through: formatting builds nothing --- tools/cl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/cl b/tools/cl index 9f7135c72..2228a337b 100755 --- a/tools/cl +++ b/tools/cl @@ -200,7 +200,8 @@ def report_new_variants(before, after): def run(top, cargo_args): - for arg in cargo_args: + # cargo fmt builds nothing, so its `--all` is the usual whole-workspace format. + for arg in ([] if cargo_args[:1] == ["fmt"] else cargo_args): if arg in REFUSED: fail(f"{arg} refused: {REFUSED[arg]}") env = dict(os.environ)