-
Notifications
You must be signed in to change notification settings - Fork 899
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
Fix/Visual IndentStyle is broken on impl with where clause #5460
base: master
Are you sure you want to change the base?
Conversation
… the required indent_style config.
@jmj0502 Thank you for your second contribution now! I want to let you know that I've seen this but likely won't get around to reviewing it until later next week. |
@ytmimi Thanks for all the guidance! Looking forward to keep on contributing and getting to know the project better, in order to tackle tougher issues in the future. In regards to the review process; no worries, I'll keep an eye around in case changes are required, so don't hesitate to reach out 👍 . |
@ytmimi Hey! Hope you're doing great! c: |
@jmj0502 Don't worry, I haven't forgotten about this, I just haven't had as much time as I'd like for reviews recently. Apologies for the delay and I'll look to provide you with some feedback on this soon |
@jmj0502 thanks for looking into this. I have two asks before moving forward
|
@ytmimi Cool! I'll add the changes as soon as I have some free time ✌️ |
…der. Additional test cases for the issue-3071 were added; in order to check if the the where_single_line config still has the expected behaviour. Additional examples were added to Configurations.md.
@ytmimi Done! I added the additional tests and some code snippets that illustrate how the format of the |
@ytmimi I'm getting format errors each time I run the tests for |
hmmm 🤔 not sure either, but I'm looking into it! |
It looks like these are the snippets rustfmt accepts. I took each one and ran rustfmt on it with the For your info Each code snippet should represent what the code would look like after rustfmt has been applied to it. So basically the snippets need to be idempotent. Here's the fn lorem<Ipsum, Dolor, Sit, Amet>() -> T
where
Ipsum: Eq,
Dolor: Eq,
Sit: Eq,
Amet: Eq,
{
// body
}
struct Foo<T>
where
T: Eq, {
// body
}
impl<T> Foo<T>
where
T: Eq,
{
// body
} Here's the fn lorem<Ipsum, Dolor, Sit, Amet>() -> T
where Ipsum: Eq,
Dolor: Eq,
Sit: Eq,
Amet: Eq
{
// body
}
struct Foo<T>
where T: Eq {
// body
}
impl<T> Foo<T>
where T: Eq
{
// body
} |
@ytmimi Okok, I'll proceed to remove the examples 👍 |
To be clear, I'd like to keep the |
… blocks from configurations.md.
@ytmimi Donee! |
Fixes #3071