We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f806d9 commit 76ab3c1Copy full SHA for 76ab3c1
src/matches.rs
@@ -103,10 +103,9 @@ pub(crate) fn rewrite_match(
103
let inner_attrs_str = if inner_attrs.is_empty() {
104
String::new()
105
} else {
106
- let shape = if context.config.version() == Version::One {
107
- shape
108
- } else {
109
- shape.block_indent(context.config.tab_spaces())
+ let shape = match context.config.version() {
+ Version::One => shape,
+ _ => shape.block_indent(context.config.tab_spaces())
110
};
111
inner_attrs
112
.rewrite(context, shape)
0 commit comments