-
Notifications
You must be signed in to change notification settings - Fork 881
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
Formatting of match arms with long guards is a bit awkward. #3005
Comments
Also, this looks like a regression, since the same code was rustfmt'd already a while ago. |
@emilio This indentation is expected I think as per the style guide. @nrc should the guide be revised or close the issue as a wont fix ? |
I think we didn't consider the case where there is a |
I believe I'm experiencing the same issue with rust-sfml. diff --git a/examples/pong.rs b/examples/pong.rs
index 4bfa5ed..cf3928c 100644
--- a/examples/pong.rs
+++ b/examples/pong.rs
@@ -101,7 +103,8 @@ fn main() {
} => return,
Event::KeyPressed {
code: Key::Space, ..
- } if !is_playing =>
+ }
+ if !is_playing =>
{
// (re)start the game
is_playing = true;
|
Not sure it's expected, feel free to close if so, but I have never seen a human use that formatting :)
The text was updated successfully, but these errors were encountered: