@@ -208,15 +208,15 @@ impl clean::GenericParamDef {
208
208
if f. alternate ( ) {
209
209
write ! ( f, ": {:#}" , print_generic_bounds( bounds, cx) ) ?;
210
210
} else {
211
- write ! ( f, ": {}" , print_generic_bounds( bounds, cx) ) ?;
211
+ write ! ( f, ": {}" , print_generic_bounds( bounds, cx) ) ?;
212
212
}
213
213
}
214
214
215
215
if let Some ( ref ty) = default {
216
216
if f. alternate ( ) {
217
217
write ! ( f, " = {:#}" , ty. print( cx) ) ?;
218
218
} else {
219
- write ! ( f, " = {}" , ty. print( cx) ) ?;
219
+ write ! ( f, " = {}" , ty. print( cx) ) ?;
220
220
}
221
221
}
222
222
@@ -226,14 +226,14 @@ impl clean::GenericParamDef {
226
226
if f. alternate ( ) {
227
227
write ! ( f, "const {}: {:#}" , self . name, ty. print( cx) ) ?;
228
228
} else {
229
- write ! ( f, "const {}: {}" , self . name, ty. print( cx) ) ?;
229
+ write ! ( f, "const {}: {}" , self . name, ty. print( cx) ) ?;
230
230
}
231
231
232
232
if let Some ( default) = default {
233
233
if f. alternate ( ) {
234
234
write ! ( f, " = {:#}" , default ) ?;
235
235
} else {
236
- write ! ( f, " = {}" , default ) ?;
236
+ write ! ( f, " = {}" , default ) ?;
237
237
}
238
238
}
239
239
@@ -354,12 +354,12 @@ pub(crate) fn print_where_clause<'a, 'tcx: 'a>(
354
354
let mut br_with_padding = String :: with_capacity ( 6 * indent + 28 ) ;
355
355
br_with_padding. push_str ( "<br>" ) ;
356
356
for _ in 0 ..indent + 4 {
357
- br_with_padding. push_str ( " " ) ;
357
+ br_with_padding. push_str ( " " ) ;
358
358
}
359
359
let where_preds = where_preds. to_string ( ) . replace ( "<br>" , & br_with_padding) ;
360
360
361
361
if ending == Ending :: Newline {
362
- let mut clause = " " . repeat ( indent. saturating_sub ( 1 ) ) ;
362
+ let mut clause = " " . repeat ( indent. saturating_sub ( 1 ) ) ;
363
363
write ! ( clause, "<span class=\" where fmt-newline\" >where{where_preds},</span>" ) ?;
364
364
clause
365
365
} else {
@@ -368,7 +368,7 @@ pub(crate) fn print_where_clause<'a, 'tcx: 'a>(
368
368
format ! ( "<br><span class=\" where\" >where{where_preds}</span>" )
369
369
} else {
370
370
let mut clause = br_with_padding;
371
- clause. truncate ( clause. len ( ) - 4 * " " . len ( ) ) ;
371
+ clause. truncate ( clause. len ( ) - 4 ) ;
372
372
write ! ( clause, "<span class=\" where\" >where{where_preds}</span>" ) ?;
373
373
clause
374
374
}
@@ -1391,8 +1391,8 @@ impl clean::FnDecl {
1391
1391
1392
1392
let declaration_len = header_len + args_plain. len ( ) + arrow_plain. len ( ) ;
1393
1393
let output = if declaration_len > 80 {
1394
- let full_pad = format ! ( "<br>{}" , " " . repeat( indent + 4 ) ) ;
1395
- let close_pad = format ! ( "<br>{}" , " " . repeat( indent) ) ;
1394
+ let full_pad = format ! ( "<br>{}" , " " . repeat( indent + 4 ) ) ;
1395
+ let close_pad = format ! ( "<br>{}" , " " . repeat( indent) ) ;
1396
1396
format ! (
1397
1397
"({pad}{args}{close}){arrow}" ,
1398
1398
pad = if self . inputs. values. is_empty( ) { "" } else { & full_pad } ,
@@ -1611,7 +1611,7 @@ impl clean::TypeBinding {
1611
1611
if f. alternate ( ) {
1612
1612
write ! ( f, ": {:#}" , print_generic_bounds( bounds, cx) ) ?;
1613
1613
} else {
1614
- write ! ( f, ": {}" , print_generic_bounds( bounds, cx) ) ?;
1614
+ write ! ( f, ": {}" , print_generic_bounds( bounds, cx) ) ?;
1615
1615
}
1616
1616
}
1617
1617
}
0 commit comments