File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ fn foo() {
156
156
}
157
157
"# ,
158
158
expect ! [ [ r#"
159
- bn Bar Bar { ${1:f} }$0
159
+ bn Bar Bar { f$1 }$0
160
160
"# ] ] ,
161
161
) ;
162
162
}
@@ -171,7 +171,7 @@ struct Baz;
171
171
fn outer(<|>) {}
172
172
"# ,
173
173
expect ! [ [ r#"
174
- bn Foo Foo { ${1:bar}, ${2:baz} }: Foo$0
174
+ bn Foo Foo { bar$1, baz$2 }: Foo$0
175
175
bn Bar Bar($1, $2): Bar$0
176
176
"# ] ] ,
177
177
)
@@ -189,7 +189,7 @@ fn outer() {
189
189
}
190
190
"# ,
191
191
expect ! [ [ r#"
192
- bn Foo Foo { ${1:bar}, ${2:baz} }$0
192
+ bn Foo Foo { bar$1, baz$2 }$0
193
193
bn Bar Bar($1, $2)$0
194
194
"# ] ] ,
195
195
)
@@ -209,7 +209,7 @@ fn outer() {
209
209
}
210
210
"# ,
211
211
expect ! [ [ r#"
212
- bn Foo Foo { ${1:bar}, ${2:baz} }$0
212
+ bn Foo Foo { bar$1, baz$2 }$0
213
213
bn Bar Bar($1, $2)$0
214
214
"# ] ] ,
215
215
)
@@ -233,7 +233,7 @@ fn outer() {
233
233
}
234
234
"# ,
235
235
expect ! [ [ r#"
236
- bn Foo Foo { ${1:bar} , .. }$0
236
+ bn Foo Foo { bar$1 , .. }$0
237
237
bn Bar Bar($1, ..)$0
238
238
"# ] ] ,
239
239
)
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ fn render_record_as_pat(
121
121
"{name} {{ {}{} }}" ,
122
122
fields
123
123
. enumerate( )
124
- . map( |( idx, field) | format!( "${{{}:{}}} " , idx + 1 , field. name( db) ) )
124
+ . map( |( idx, field) | format!( "{}${} " , field. name( db) , idx + 1 ) )
125
125
. format( ", " ) ,
126
126
if fields_omitted { ", .." } else { "" } ,
127
127
name = name
You can’t perform that action at this time.
0 commit comments