From f135641cc873c21ea8768a78534efc9ff3f4bb82 Mon Sep 17 00:00:00 2001 From: topecongiro Date: Sun, 11 Jun 2017 23:26:49 +0900 Subject: Use multi line when type bounds does not fit in a single line --- src/expr.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/expr.rs') diff --git a/src/expr.rs b/src/expr.rs index aa5913e5f0f..04778b6ddca 100644 --- a/src/expr.rs +++ b/src/expr.rs @@ -2063,12 +2063,12 @@ fn rewrite_struct_lit<'a>(context: &RewriteContext, // FIXME if context.config.struct_lit_style() == Visual, but we run out // of space, we should fall back to BlockIndent. } + pub fn struct_lit_field_separator(config: &Config) -> &str { colon_spaces(config.space_before_struct_lit_field_colon(), config.space_after_struct_lit_field_colon()) } - fn rewrite_field(context: &RewriteContext, field: &ast::Field, shape: Shape) -> Option { let name = &field.ident.node.to_string(); if field.is_shorthand { -- cgit 1.4.1-3-g733a5