-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Attempt to break long expressions into multiple lines #5207
Conversation
ee2d2cc
to
1bd6bf7
Compare
0c4e7d8
to
89a6946
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice one @cr-fuel !
Left one small nit, but feel free to ignore.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like there are some failing checks.
The format check is failing because the changes you've introduced have not been applied to the examples directory. Also looks like there may be some compiler warnings causing the clippy check to fail.
89a6946
to
14c99f2
Compare
a390462
to
39cccee
Compare
fbfb750
to
1e0ddee
Compare
652ad3c
to
26eee76
Compare
2d29e29
to
bc33d58
Compare
507ae96
to
86e1d62
Compare
Fix struct properties indentation
Update rules to decide whether to split chained methods and their arguments and how to count their width. The list of arguments is independent from their previous bytes (like in chained functions/methods)
86e1d62
to
be017df
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work!
Fixes #3474
Description
Breaks long expressions (focusing into chained methods calls but will cover all expressions) into multiple lines
Checklist
Breaking*
orNew Feature
labels where relevant.