Fixing spaces_within_parens_and_brackets=true snippet

This commit is contained in:
David Alber 2018-01-20 22:09:07 -08:00
parent 9a9bb8564b
commit 33b5c3f9d5

View File

@ -1601,17 +1601,19 @@ fn lorem<T: Eq>(t: T) {
```rust
// generic arguments
fn lorem< T: Eq >(t: T) {
fn lorem< T: Eq >( t: T ) {
// body
}
// non-empty parentheses
fn lorem<T: Eq>( t: T ) {
fn lorem< T: Eq >( t: T ) {
let lorem = ( ipsum, dolor );
}
// non-empty square brackets
let lorem: [ usize; 2 ] = [ ipsum, dolor ];
fn lorem< T: Eq >( t: T ) {
let lorem: [ usize; 2 ] = [ ipsum, dolor ];
}
```
## `struct_lit_single_line`