From 76f5bc06c4f33e7d0ef5425698754b52db17919a Mon Sep 17 00:00:00 2001 From: Seiichi Uchida Date: Fri, 10 Nov 2017 21:21:06 +0900 Subject: [PATCH] Fix a typo --- src/items.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/items.rs b/src/items.rs index 30f3d6f4be4..f6a6f81dbf1 100644 --- a/src/items.rs +++ b/src/items.rs @@ -937,7 +937,7 @@ pub fn format_trait(context: &RewriteContext, item: &ast::Item, offset: Indent) let body_lo = context.codemap.span_after(item.span, "{"); - let shape = Shape::indented(offset + last_line_width(&result), context.config); + let shape = Shape::indented(offset, context.config); let generics_str = rewrite_generics(context, generics, shape, mk_sp(item.span.lo(), body_lo))?; result.push_str(&generics_str);