mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-25 22:22:44 +00:00
Fixing spaces_within_parens_and_brackets=true
snippet
This commit is contained in:
parent
9a9bb8564b
commit
33b5c3f9d5
@ -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`
|
||||
|
Loading…
Reference in New Issue
Block a user