rustfmt
rustfmt copied to clipboard
Format Rust code
# Summary This PR adds a long requested feature to ``cargo-fmt``. Users will now be able to specify individual files inside their package to format. The motivating use case for...
I've split out the portion of #5004 that fixes #2055 into its own PR. I took a look at #4666 and found a case that it handled that wasn't in...
Resolves #5022 # Summary At a high level, this feature was implemented by adding a new configuration option that toggles whether we abort rustfmt or log warnings when using unstable...
This PR adds a new configuration option called `righthand_indentation_strategy` (WIP name) that allows configuring of how rustfmt will emit assignment statements if the value does not fit on a single...
This PR adds a new config option for controlling block wrapping in match arms as below: ```rust pub enum MatchArmWrapping { /// Follow the Style Guide Prescription Default, /// Same...
Suggested fix for issue #4706, including enhancements to the handling of `#[rustfmt::skip]`. #4706 issue was caused because `format_impl()` did not copy the skipped range from the local `context` into the...
The pull request aims at solving #4649, and formats the comment that occurs before the where-clause; two cases are handled by the modified code: * `where` exists but does not...
Fixes #4748 .
Fixes #4757 .