Skip to content

rustup_mode.rs: Break up CLI generation to let rustfmt work #2097

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

Merged
merged 1 commit into from
Oct 29, 2019

Conversation

kinnison
Copy link
Contributor

For some reason rustfmt was hitting a brick wall when formatting the expression which was the majority of rustup_mode.rs's CLI. This PR breaks that up so that formatting works again.

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
@kinnison kinnison merged commit 8da646c into rust-lang:master Oct 29, 2019
@kinnison kinnison deleted the kinnison/format-cli-more branch October 29, 2019 20:46
@tesuji
Copy link
Contributor

tesuji commented Oct 30, 2019

It's best to create a minimal example and report the problem in rustfmt issue.

@kinnison
Copy link
Contributor Author

@lzutao There already is a rustfmt issue which I'm subscribed to; but the fix isn't slated until rustfmt 2.0 so for now we need the change in rustup :D

);

// We break the app creation here so that rustfmt can cope
// If rustfmt ceases to format this block, break it up further
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there an issue about that in rustfmt?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is indeed a known issue in rustfmt though I was told it's unlikely to be resolved before 2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants