-
Notifications
You must be signed in to change notification settings - Fork 883
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
wrap_comments
wraps (long) headers
#5238
Comments
Thanks for submitting this report! I think the proposed fix makes sense, and I should have a fix for this soon! |
@rustbot claim |
Looking into this a little more I think only the |
Yes, I assumed this (see title of this issue) but since I didn't have time to test this assumption I thought I dump the entire |
Input (from the
miette
crate's docs):/// # Wrapping Types That Do Not Implement `Error` (e.g. `&str` and `Box<dyn Error>`)
After
cargo fmt
withrustfmt.toml
:Output:
Which renders as:
Fix
Do not ever break comment lines starting with
#
even whenwrap_comments
is set.The text was updated successfully, but these errors were encountered: