mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-05 21:24:12 +00:00
Fix a typo
This commit is contained in:
parent
38a5350dcd
commit
76f5bc06c4
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user