Skip to content

Commit 0075f6f

Browse files
stepanchegfacebook-github-bot
authored andcommitted
Remove rustfmt --recursive option
Summary: D35234535 updated rustfmt, which no longer has `--recursive` option. `rustfmt` [seems to](rust-lang/rustfmt#5018 (comment)) flip `--recursive` option with `--skip-children`. Reviewed By: bobyangyf Differential Revision: D35240294 fbshipit-source-id: bbcd4dc3556c0753c07f3cbe380553e6426d1527
1 parent a047ce2 commit 0075f6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def rustfmt(buck2_dir: Path, ci: bool) -> None:
118118
env["RUSTFMT"] = str(
119119
buck2_dir.parent.parent / "tools" / "third-party" / "rustfmt" / "rustfmt"
120120
)
121-
output = run([cargo_fmt, "--", "--recursive"], capture_output=True, env=env).stdout
121+
output = run([cargo_fmt, "--"], capture_output=True, env=env).stdout
122122
for line in output.splitlines():
123123
# The fbsource formatter spews out:
124124
# Warning: the `merge_imports` option is deprecated. Use `imports_granularity=Crate` instead

0 commit comments

Comments
 (0)