@@ -43,9 +43,7 @@ impl Builtins<'_> {
4343 . error ( f ! (
4444 "unexpected {} in {}" ,
4545 found. for_user_diagnostic( self . spec) ,
46- unexpected_in
47- . into( )
48- . for_user_diagnostic( self . spec) ,
46+ unexpected_in. into( ) . for_user_diagnostic( self . spec) ,
4947 ) )
5048 . at ( at)
5149 . reported_at ( Location :: caller ( ) ) ;
@@ -82,9 +80,7 @@ impl Builtins<'_> {
8280 . error ( f ! (
8381 "extraneous character{} after {}" ,
8482 plural( found. chars( ) . count( ) ) ,
85- unexpected_in
86- . into( )
87- . for_user_diagnostic( self . spec) ,
83+ unexpected_in. into( ) . for_user_diagnostic( self . spec) ,
8884 ) )
8985 . at ( at)
9086 . remark (
@@ -137,10 +133,7 @@ impl Builtins<'_> {
137133
138134 let diagnostic = self
139135 . report
140- . error ( f ! (
141- "unexpected closing {}" ,
142- found. for_user_diagnostic( self . spec)
143- ) )
136+ . error ( f ! ( "unexpected closing {}" , found. for_user_diagnostic( self . spec) ) )
144137 . saying ( at, f ! ( "expected to be opened by `{expected}`" ) )
145138 . reported_at ( Location :: caller ( ) ) ;
146139
@@ -186,9 +179,7 @@ impl Builtins<'_> {
186179 . report
187180 . error ( f ! (
188181 "unexpected non-ASCII characters in {}" ,
189- expected
190- . into( )
191- . for_user_diagnostic( self . spec)
182+ expected. into( ) . for_user_diagnostic( self . spec)
192183 ) )
193184 . at ( at)
194185 . reported_at ( Location :: caller ( ) )
@@ -260,10 +251,7 @@ impl Builtins<'_> {
260251
261252 self
262253 . report
263- . error ( f ! (
264- "{} out of span" ,
265- what. into( ) . for_user_diagnostic( self . spec)
266- ) )
254+ . error ( f ! ( "{} out of span" , what. into( ) . for_user_diagnostic( self . spec) ) )
267255 . at ( at)
268256 . note ( f ! (
269257 "expected value in the span {start}{}..{}{end}" ,
0 commit comments