diff options
| author | Nick Cameron <nrc@ncameron.org> | 2017-06-13 11:55:33 +1200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-06-13 11:55:33 +1200 |
| commit | c07925f4989416ab9325714e97a4f3da5cb600d2 (patch) | |
| tree | f36d48968b377edf5cf01ab923afa4034a2f3b30 /src/expr.rs | |
| parent | 6ed3077651f6e6672df922181a7f5ce5289c74e1 (diff) | |
| parent | 62e9473d07ec9a35e1c1e63140381055d86bb478 (diff) | |
Merge pull request #1647 from topecongiro/refactor-impl-format
Refactor impl format
Diffstat (limited to 'src/expr.rs')
| -rw-r--r-- | src/expr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/expr.rs b/src/expr.rs index cbe8671fd92..40c678174a8 100644 --- a/src/expr.rs +++ b/src/expr.rs @@ -2089,12 +2089,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<String> { let name = &field.ident.node.to_string(); if field.is_shorthand { |
