Skip to content

Commit a4db623

Browse files
committed
Respect empty_item_single_line config option when formatting empty impls
1 parent d51b99f commit a4db623

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/items.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ pub fn format_impl(
750750
result.push_str(&outer_indent_str);
751751
}
752752

753-
if result.ends_with('{') {
753+
if result.ends_with('{') && !context.config.empty_item_single_line() {
754754
result.push_str(&sep);
755755
}
756756
result.push('}');

0 commit comments

Comments
 (0)