You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this simple case, you could just prevent the formatting by adding a semicolon after the break, but a more complex case might not return () from the labelled block (and therefore require additional changes).
This code
https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=6c806c4f3f7db3d30ba75a53393b222f
formats into:
So the label is no longer valid.
In this simple case, you could just prevent the formatting by adding a semicolon after the break, but a more complex case might not return
()
from the labelled block (and therefore require additional changes).Version:
rustfmt 1.5.2-nightly (c18a5e8a 2023-01-25)
EDIT (@ytmimi): Updated the examples so that rustfmt can be run on the code snippet directly.
The text was updated successfully, but these errors were encountered: