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
As of current master (c0e616b), cargo run --manifest-path path/to/rustfmt/Cargo.toml --release --bin rustfmt <main.rs leaves the long line in this file unchanged.
Shortening the input line such that it can fit within rustfmt's default max_width produces good formatting, as expected:
Is there anything I can set to end up with best-effort formatting, even for content wider than max_width, rather than leaving long lines totally unformatted? Here is what I would want:
Input file:
As of current master (c0e616b),
cargo run --manifest-path path/to/rustfmt/Cargo.toml --release --bin rustfmt <main.rs
leaves the long line in this file unchanged.Shortening the input line such that it can fit within rustfmt's default max_width produces good formatting, as expected:
If I configure
max_width = 1000
, I get correct but very wide formatting, as expected:Is there anything I can set to end up with best-effort formatting, even for content wider than max_width, rather than leaving long lines totally unformatted? Here is what I would want:
The text was updated successfully, but these errors were encountered: