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 4b1596f commit 22a4306Copy full SHA for 22a4306
src/matches.rs
@@ -103,9 +103,12 @@ pub(crate) fn rewrite_match(
103
let inner_attrs_str = if inner_attrs.is_empty() {
104
String::new()
105
} else {
106
- inner_attrs
+ shape.indent.block_indent(context.config);
107
+ let result = inner_attrs
108
.rewrite(context, shape)
- .map(|s| format!("{}{}\n", nested_indent_str, s))?
109
+ .map(|s| format!("{}{}\n", nested_indent_str, s))?;
110
+ shape.indent.block_unindent(context.config);
111
+ result
112
};
113
114
let open_brace_pos = if inner_attrs.is_empty() {
0 commit comments