-
Notifications
You must be signed in to change notification settings - Fork 924
Split impl<...> X for Y<...> at 'for' #1037
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
I will take a look at this. |
@nrc can you maybe give me a hint, how to do this? My idea is simply to check if type + trait fits on one line. If not, break befose the |
I would examine I think checking for a newline in the reformatted type is all you need to do - you will never affect the earlier part of the impl, and that is the only place that a linebreak can happen. You could also try this if the result of reformatting was You should just check that when you do split, Also, you'll need to delay actually appending Ping me on irc if you want more info. |
Thanks @nrc! |
The text was updated successfully, but these errors were encountered: