Wrong shape used when rewriting inner attributes in match expression #6147
Labels
a-matches
match arms, patterns, blocks, etc
good first issue
Issues up for grabs, also good candidates for new rustfmt contributors
poor-formatting
The indentation of the second inner attribute isn't correct.
version:
rustfmt 1.7.0-nightly (72893919 2024-04-07)
-- built from rust-lang/rustfmt source.commit: 7289391
configs used:
defaults
Input
output
The fix will likely involve pass an indented shape when calling
inner_attrs.rewrite()
.rustfmt/src/matches.rs
Line 107 in 7289391
The text was updated successfully, but these errors were encountered: