From 8d01496c9e40045e29f7685e6f2abd7a2ca1ff26 Mon Sep 17 00:00:00 2001 From: Seiichi Uchida Date: Wed, 6 Jun 2018 10:46:18 +0900 Subject: [PATCH] Remove unreachable lines --- src/items.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/items.rs b/src/items.rs index 81e86b721969..cc5825048e4b 100644 --- a/src/items.rs +++ b/src/items.rs @@ -709,11 +709,6 @@ pub fn format_impl( return Some(result); } - if !where_clause_str.is_empty() && !where_clause_str.contains('\n') { - let width = offset.block_indent + context.config.tab_spaces() - 1; - let where_indent = Indent::new(0, width); - result.push_str(&where_indent.to_string_with_newline(context.config)); - } result.push_str(&where_clause_str); let need_newline = last_line_contains_single_line_comment(&result) || result.contains('\n');