File tree 1 file changed +10
-10
lines changed
1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -282,18 +282,18 @@ crate fn print_where_clause<'a, 'tcx: 'a>(
282
282
match pred {
283
283
clean:: WherePredicate :: BoundPredicate { ty, bounds, bound_params } => {
284
284
let bounds = bounds;
285
- let for_prefix = match bound_params. len ( ) {
286
- 0 => String :: new ( ) ,
287
- _ if f. alternate ( ) => {
288
- format ! (
289
- "for<{:#}> " ,
290
- comma_sep( bound_params. iter( ) . map( |lt| lt. print( ) ) , true )
291
- )
292
- }
293
- _ => format ! (
285
+ let for_prefix = if bound_params. is_empty ( ) {
286
+ String :: new ( )
287
+ } else if f. alternate ( ) {
288
+ format ! (
289
+ "for<{:#}> " ,
290
+ comma_sep( bound_params. iter( ) . map( |lt| lt. print( ) ) , true )
291
+ )
292
+ } else {
293
+ format ! (
294
294
"for<{}> " ,
295
295
comma_sep( bound_params. iter( ) . map( |lt| lt. print( ) ) , true )
296
- ) ,
296
+ )
297
297
} ;
298
298
299
299
if f. alternate ( ) {
You can’t perform that action at this time.
0 commit comments