Use struct prefix as a callee

This commit is contained in:
topecongiro 2017-11-08 11:52:25 +09:00
parent bbfdb12c3e
commit 19a3b0b5ca

View File

@ -1282,16 +1282,15 @@ fn format_tuple_struct(
result.push(')');
} else {
// 1 = ","
let body = rewrite_call_inner(
result = rewrite_call_inner(
context,
"",
&result,
&fields.iter().map(|field| field).collect::<Vec<_>>()[..],
span,
Shape::indented(offset, context.config).sub_width(1)?,
context.config.fn_call_width(),
false,
)?;
result.push_str(&body);
}
if !where_clause_str.is_empty() && !where_clause_str.contains('\n')