mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-23 02:51:42 +01:00
cl lets cargo fmt --all through: formatting builds nothing
This commit is contained in:
1 parent
65f67985fc
commit
cb33c14ff2
1 file changed
+2
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user