-
Notifications
You must be signed in to change notification settings - Fork 925
Was chain_width removed? #4437
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for the question @DumpsterDoofus . You are looking at the configuration options for the latest version of rustfmt in source (v2.x), but you are using a different version of rustfmt v1.4.18. As mentioned in the Configurations.md file you referenced:
Looks like the tag is missing for 1.4.18 but you can use this: https://rust-lang.github.io/rustfmt/?version=v1.4.20&search= to browse available options for the version of rustfmt you are using (there were no config changes between 1.4.18 and 1.4.20) |
can we know if 2.0 is planned for 2020 or is there a roadmap somewhere? |
Describe the bug
chain_width
is documented as a stable option at https://github.com/rust-lang/rustfmt/blob/master/Configurations.md#chain_width. However, it doesn't seem to exist as a configuration option. Am I misusing it?To Reproduce
In a new project directory, create a file
rustfmt.toml
with these contents:In that directory, run
cargo fmt
.Expected behavior
Formatting succeeds. Long function call chains are formatted on separate lines.
Actual behavior
A warning is printed:
Long function call chains are formatted on one line.
Meta
rustup component add rustfmt
cargo fmt
The text was updated successfully, but these errors were encountered: