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
Looking into this a little more I think only the wrap_comments = true configuration option is causing the issue. Appreciate you listing all the options you're using though!
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 rustfmt.toml in use in miette. 😀
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: