File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -204,8 +204,9 @@ impl<'a> FmtVisitor<'a> {
204
204
. enumerate ( )
205
205
. map ( |( i, item) | self . rewrite_expr (
206
206
item,
207
- // for last line, -2 is for indent + ")", for other lines, -1 is for comma
208
- if i == items. len ( ) - 1 { width - 2 } else { config ! ( max_width) - indent - 1 } ,
207
+ // last line : given width (minus "("+")"), other lines : max_width
208
+ // (minus "("+","))
209
+ if i == items. len ( ) - 1 { width - 2 } else { config ! ( max_width) - indent - 2 } ,
209
210
indent) )
210
211
. collect ( ) ;
211
212
let tactics = if item_strs. iter ( ) . any ( |s| s. contains ( '\n' ) ) {
Original file line number Diff line number Diff line change 2
2
3
3
fn foo ( ) {
4
4
let a = ( a, a, a, a, a) ;
5
- let aaaaaaaaaaaaaaaa = ( aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa, aaaaaaaaaaaaaa, aaaaaaaaaa ) ;
5
+ let aaaaaaaaaaaaaaaa = ( aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa, aaaaaaaaaaaaaa, aaaaaaaaaaaaaa ) ;
6
6
let aaaaaaaaaaaaaaaaaaaaaa = ( aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,
7
+ aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,
7
8
aaaaaaaaaaaaaaaaaaaaaaaaa,
8
9
aaaa) ;
9
10
}
You can’t perform that action at this time.
0 commit comments