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

e.g., ```rust use risingwave_batch::executor::{BoxedExecutor, JoinType}; use risingwave_batch::executor::{BoxedExecutor, JoinType}; ``` After first fmt ```rust use risingwave_batch::executor::{BoxedExecutor, BoxedExecutor, JoinType, JoinType}; ``` After second fmt ```rust use risingwave_batch::executor::{BoxedExecutor, JoinType, JoinType}; ``` The behavior...

bug
only-with-option

This is similar to https://github.com/rust-lang/rustfmt/issues/3720, but for group_imports settings such as `StdExternalCrate`. https://github.com/rust-lang/rust/pull/126776 shows the consequences of that: it is now impossible to have a "chunk" of `use` statements that...

a-comments
only-with-option
a-imports

Discussion for `spaces_within_parenthesized_items` configuration option. Implemented by #5434. This option enforces consistent spacing directly inside of parentheses, by putting one space to the right of '(' and to the left...

p-low
feature-request
a-whitespace

version: `rustfmt 1.7.1-nightly (ba1d7f4a 2024-06-29)` config: [rustfmt.toml](https://github.com/boozook/playdate/blob/main/rustfmt.toml) Formatting is flickering for looooong chain like this: from this ```rust let removed = roots.extract_if(|root| { /* long block */ }).count(); ``` to...

needs-mcve

I tried searching around but couldn't find anything about this. I'm trying to use rustfmt (by way of cargo fmt) to format my files, but the `proptest!` blocks are not...

p-low
a-macros
needs-mcve

I tried this code: ```rust trait Foo { type Bar

bug
a-comments
C-bug
needs-triage

I have this macro call [here](https://github.com/fpdotmonkey/gdext/commit/e5ac4fc4bcaf58214567b4fe405a752fb943817b#diff-45c66b90f041a85130206b4044a54b2b7fb9a51933580f93ce27ee8cc0faa3adR404-R408) that is formatted by rustfmt as so. ``` $ rustfmt --check godot-macros/src/class/data_models/field_export.rs Diff in /home/fp/3rd/gdext/godot-macros/src/class/data_models/field_export.rs at line 402: }?; let deprecation_warning = if *radians...

poor-formatting
a-macros

Tracking issue for unstable option: empty_item_single_line

unstable option

In the following example, the first long method call chain is kept at the outer indentation level, while the second is indented by one: ```rust fn very_very_very_very_very_long_fun_name(x: i32) -> Vec...

poor-formatting
p-low
a-chains

Similar to the just-filed #3254 but a different case and with a possibly different resolution, the following comment is re-indented incorrectly: ```rust if foo { // this comment describes the...

poor-formatting
a-comments