Skip to content
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

Implement single-line where #1847

Merged
merged 6 commits into from
Aug 2, 2017
Merged

Implement single-line where #1847

merged 6 commits into from
Aug 2, 2017

Conversation

topecongiro
Copy link
Contributor

@topecongiro topecongiro commented Aug 1, 2017

This PR implements rust-lang/style-team#74, with some refactoring and bug fixes.
Closes #1843. Closes #1844.

Copy link
Member

@nrc nrc left a comment

Choose a reason for hiding this comment

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

Looks good, thank you!

@@ -2589,6 +2597,7 @@ fn rewrite_where_clause(
terminator: &str,
suppress_comma: bool,
snuggle: bool,
compress_where: bool,
Copy link
Member

Choose a reason for hiding this comment

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

I don't think you need to do it to land this PR, but I think there are enough bools here that it is worth factoring out a WhereClauseOptions struct.

@nrc nrc merged commit 9ae00a4 into rust-lang:master Aug 2, 2017
@topecongiro topecongiro deleted the issue-1843 branch August 2, 2017 08:08
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.

where_density does not take effect with where_style = Rfc Space after the function return value is removed
2 participants