Open TornaxO7 opened 3 years ago
Example code:
Content of ~/.config/rusfmt/rustfmt.toml:
~/.config/rusfmt/rustfmt.toml
Output of rustfmt -V: rustfmt 1.4.37-nightly (7c3872e 2021-06-24)
rustfmt -V
rustfmt 1.4.37-nightly (7c3872e 2021-06-24)
If I run rustfmt with the settings and the file above, rustfmt changes the file to this:
rustfmt
But I'd expect to be like this:
If you don't see the difference: There's a blank line between const LMAO: i32 = 42; and the documentation paragraph /// Awesome doc in my "expectation-example".
const LMAO: i32 = 42;
/// Awesome doc
Linking tracking issue for reorder_impl_items #3363
reorder_impl_items
Reproduction information
Example code:
Content of
~/.config/rusfmt/rustfmt.toml
:Output of
rustfmt -V
:rustfmt 1.4.37-nightly (7c3872e 2021-06-24)
Problem
If I run
rustfmt
with the settings and the file above,rustfmt
changes the file to this:But I'd expect to be like this:
If you don't see the difference: There's a blank line between
const LMAO: i32 = 42;
and the documentation paragraph/// Awesome doc
in my "expectation-example".