Split after the colon of type ascription

This commit is contained in:
topecongiro 2017-09-15 15:04:30 +09:00
parent ff30782725
commit 2d21c0c30b
2 changed files with 3 additions and 3 deletions

View File

@ -232,7 +232,7 @@ pub fn format_expr(
"",
context,
shape,
SeparatorPlace::Front,
SeparatorPlace::Back,
),
ast::ExprKind::Index(ref expr, ref index) => {
rewrite_index(&**expr, &**index, context, shape)

View File

@ -5,8 +5,8 @@ fn main() {
let xxxxxxxxxxxxxxx =
yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA;
let z = funk(yyyyyyyyyyyyyyy, zzzzzzzzzzzzzzzz, wwwwww)
: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA;
let z = funk(yyyyyyyyyyyyyyy, zzzzzzzzzzzzzzzz, wwwwww):
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA;
x: u32 - 1u32 / 10f32: u32
}