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
Look at the playground and try rustfmt. I expect one blank lines between functions as that's how mostcodeis formatted in rust as far as I know. I didn't find it as existing lint but it would be very similar to blank_lines_lower_bound but only for outside blocks.
Thanks for reaching out, but this is actually a duplicate of bugs (e.g. #2954) with blank_lines_lower_bound where newlines were inserted just about everywhere instead of between Items as it should. That has been fixed in source but on a different experimental branch for a potential v2 of rustfmt, and the fix hasn't been backported into the rustfmt mainline and release train (#2954 is labeled accordingly).
Getting that fix backported is definitely on the radar, so I'm going to go ahead and close this. You may want to subscribe to that issue for any updates, as well as potentially the stabilization tracking issue (#3382) where other bugs and discussion may take place, as blank_lines_lower_bound is still an unstable/in-process option.
Look at the playground and try
rustfmt
. I expect one blank lines between functions as that's how most code is formatted in rust as far as I know. I didn't find it as existing lint but it would be very similar toblank_lines_lower_bound
but only for outside blocks.What I would expect from lint to do:
Before:
After:
The text was updated successfully, but these errors were encountered: