mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-16 22:14:30 +00:00
cl lets cargo fmt --all through: formatting builds nothing
This commit is contained in:
@@ -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