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
Agreed. In cases where the fn signature has to be formatted across multiple lines then a present where clause would need to be formatted in the multiline form even if when where_single_line is true, but that rule shouldn't be applied in the absence of a where clause
Input
Output
The space after the second function's return type is converted to a newline:
Expected output
Identical to input.
Meta
rustfmt 1.4.27-nightly (580d826 2020-11-16)
, installed viarustup
, and invoked ascargo nightly fmt -- ./test.rs
.rustfmt.toml
contained no uncommented lines exceptwhere_single_line = true
.The text was updated successfully, but these errors were encountered: