]> git.lizzy.rs Git - rust.git/commit
Add config options for spaces around the colon in struct literal fields
authorest31 <MTest31@outlook.com>
Tue, 6 Jun 2017 01:11:17 +0000 (03:11 +0200)
committerest31 <MTest31@outlook.com>
Tue, 6 Jun 2017 01:50:58 +0000 (03:50 +0200)
commitaa4cd311bb07ea25d89096e8fdd5d64b73666c28
tree8eda35fc415720f1954538e6843e46a56e653f59
parentd04ab9e5ba46b21a49027ce38dc913b4617125ba
Add config options for spaces around the colon in struct literal fields

In Rust, colons are used for three purposes:

* Type annotations, including type ascription
* Trait bounds
* Struct literal fields

This commit adds options for the last missing of the three purposes,
struct literal fields.
14 files changed:
Configurations.md
src/config.rs
src/expr.rs
src/items.rs
tests/source/configs-space_after_struct_lit_field_colon-false.rs [new file with mode: 0644]
tests/source/configs-space_after_struct_lit_field_colon-true.rs [new file with mode: 0644]
tests/source/configs-space_before_struct_lit_field_colon-false.rs [new file with mode: 0644]
tests/source/configs-space_before_struct_lit_field_colon-true.rs [new file with mode: 0644]
tests/target/configs-space_after_struct_lit_field_colon-false.rs [new file with mode: 0644]
tests/target/configs-space_after_struct_lit_field_colon-true.rs [new file with mode: 0644]
tests/target/configs-space_before_struct_lit_field_colon-false.rs [new file with mode: 0644]
tests/target/configs-space_before_struct_lit_field_colon-true.rs [new file with mode: 0644]
tests/target/space-before-type-annotation.rs
tests/target/space-not-after-type-annotation-colon.rs