rustfmt icon indicating copy to clipboard operation
rustfmt copied to clipboard

Format Rust code

Results 485 rustfmt issues
Sort by recently updated
recently updated
newest added

# 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...

p-medium
feature-request
pr-merge-conflict

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...

p-medium
pr-waiting-on-author
pr-merge-conflict

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...

p-medium
pr-waiting-on-author

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...

p-low
pr-on-hold
pr-merge-conflict

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...

p-medium
pr-not-reviewed
pr-merge-conflict

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...

p-low
pr-not-reviewed
pr-targeting-2.0

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...

p-low
pr-not-reviewed
pr-targeting-2.0

Fixes #4748 .

p-low
pr-not-reviewed
pr-targeting-2.0

Fixes #4753 .

p-low
pr-not-reviewed
pr-targeting-2.0

Fixes #4757 .

p-low
pr-not-reviewed
pr-targeting-2.0