diff --git a/src/items.rs b/src/items.rs index a45d41842de..38311abcba0 100644 --- a/src/items.rs +++ b/src/items.rs @@ -750,7 +750,7 @@ pub fn format_impl( result.push_str(&outer_indent_str); } - if result.ends_with('{') { + if result.ends_with('{') && !context.config.empty_item_single_line() { result.push_str(&sep); } result.push('}');