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() {
156156}
157157"# ,
158158 expect ! [ [ r#"
159- bn Bar Bar { ${1:f} }$0
159+ bn Bar Bar { f$1 }$0
160160 "# ] ] ,
161161 ) ;
162162 }
@@ -171,7 +171,7 @@ struct Baz;
171171fn outer(<|>) {}
172172"# ,
173173 expect ! [ [ r#"
174- bn Foo Foo { ${1:bar}, ${2:baz} }: Foo$0
174+ bn Foo Foo { bar$1, baz$2 }: Foo$0
175175 bn Bar Bar($1, $2): Bar$0
176176 "# ] ] ,
177177 )
@@ -189,7 +189,7 @@ fn outer() {
189189}
190190"# ,
191191 expect ! [ [ r#"
192- bn Foo Foo { ${1:bar}, ${2:baz} }$0
192+ bn Foo Foo { bar$1, baz$2 }$0
193193 bn Bar Bar($1, $2)$0
194194 "# ] ] ,
195195 )
@@ -209,7 +209,7 @@ fn outer() {
209209}
210210"# ,
211211 expect ! [ [ r#"
212- bn Foo Foo { ${1:bar}, ${2:baz} }$0
212+ bn Foo Foo { bar$1, baz$2 }$0
213213 bn Bar Bar($1, $2)$0
214214 "# ] ] ,
215215 )
@@ -233,7 +233,7 @@ fn outer() {
233233}
234234"# ,
235235 expect ! [ [ r#"
236- bn Foo Foo { ${1:bar} , .. }$0
236+ bn Foo Foo { bar$1 , .. }$0
237237 bn Bar Bar($1, ..)$0
238238 "# ] ] ,
239239 )
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ fn render_record_as_pat(
121121 "{name} {{ {}{} }}" ,
122122 fields
123123 . enumerate( )
124- . map( |( idx, field) | format!( "${{{}:{}}} " , idx + 1 , field. name( db) ) )
124+ . map( |( idx, field) | format!( "{}${} " , field. name( db) , idx + 1 ) )
125125 . format( ", " ) ,
126126 if fields_omitted { ", .." } else { "" } ,
127127 name = name
You can’t perform that action at this time.
0 commit comments