Refactor: use less vertical lines

This commit is contained in:
topecongiro 2017-11-08 11:53:13 +09:00
parent 19a3b0b5ca
commit 9337760dd9

View File

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