This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -1283,10 +1283,6 @@ impl clean::FnDecl {
1283
1283
let mut args = Buffer :: html ( ) ;
1284
1284
let mut args_plain = Buffer :: new ( ) ;
1285
1285
for ( i, input) in self . inputs . values . iter ( ) . enumerate ( ) {
1286
- if i == 0 {
1287
- args. push_str ( "<br>" ) ;
1288
- }
1289
-
1290
1286
if let Some ( selfty) = input. to_self ( ) {
1291
1287
match selfty {
1292
1288
clean:: SelfValue => {
@@ -1312,8 +1308,7 @@ impl clean::FnDecl {
1312
1308
}
1313
1309
} else {
1314
1310
if i > 0 {
1315
- args. push_str ( " <br>" ) ;
1316
- args_plain. push_str ( " " ) ;
1311
+ args. push_str ( "<br>" ) ;
1317
1312
}
1318
1313
if input. is_const {
1319
1314
args. push_str ( "const " ) ;
@@ -1360,13 +1355,14 @@ impl clean::FnDecl {
1360
1355
let full_pad = format ! ( "<br>{}" , " " . repeat( indent + 4 ) ) ;
1361
1356
let close_pad = format ! ( "<br>{}" , " " . repeat( indent) ) ;
1362
1357
format ! (
1363
- "({args}{close}){arrow}" ,
1358
+ "({pad}{args}{close}){arrow}" ,
1359
+ pad = if self . inputs. values. is_empty( ) { "" } else { & full_pad } ,
1364
1360
args = args. replace( "<br>" , & full_pad) ,
1365
1361
close = close_pad,
1366
1362
arrow = arrow
1367
1363
)
1368
1364
} else {
1369
- format ! ( "({args}){arrow}" , args = args. replace( "<br>" , "" ) , arrow = arrow)
1365
+ format ! ( "({args}){arrow}" , args = args. replace( "<br>" , " " ) , arrow = arrow)
1370
1366
} ;
1371
1367
1372
1368
if f. alternate ( ) {
You can’t perform that action at this time.
0 commit comments