This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +41
-1
lines changed Expand file tree Collapse file tree 3 files changed +41
-1
lines changed Original file line number Diff line number Diff line change @@ -369,7 +369,9 @@ fn rewrite_tuple_pat(
369
369
shape,
370
370
span,
371
371
context. config . max_width ( ) ,
372
- if add_comma {
372
+ if dotdot_pos. is_some ( ) {
373
+ Some ( SeparatorTactic :: Never )
374
+ } else if add_comma {
373
375
Some ( SeparatorTactic :: Always )
374
376
} else {
375
377
None
Original file line number Diff line number Diff line change
1
+ struct AStruct {
2
+ A : u32 ,
3
+ B : u32 ,
4
+ C : u32 ,
5
+ }
6
+
7
+ impl Something for AStruct {
8
+ fn a_func ( ) {
9
+ match a_val {
10
+ ContextualParseError :: InvalidMediaRule ( ref err) => {
11
+ let err: & CStr = match err. kind {
12
+ ParseErrorKind :: Custom ( StyleParseErrorKind :: MediaQueryExpectedFeatureName ( ..) ) => {
13
+ cstr ! ( "PEMQExpectedFeatureName" )
14
+ } ,
15
+ } ;
16
+ }
17
+ } ;
18
+ }
19
+ }
Original file line number Diff line number Diff line change
1
+ struct AStruct {
2
+ A : u32 ,
3
+ B : u32 ,
4
+ C : u32 ,
5
+ }
6
+
7
+ impl Something for AStruct {
8
+ fn a_func ( ) {
9
+ match a_val {
10
+ ContextualParseError :: InvalidMediaRule ( ref err) => {
11
+ let err: & CStr = match err. kind {
12
+ ParseErrorKind :: Custom ( StyleParseErrorKind :: MediaQueryExpectedFeatureName (
13
+ ..
14
+ ) ) => cstr ! ( "PEMQExpectedFeatureName" ) ,
15
+ } ;
16
+ }
17
+ } ;
18
+ }
19
+ }
You can’t perform that action at this time.
0 commit comments