@@ -1214,7 +1214,7 @@ fn notable_traits_decl(decl: &clean::FnDecl, cx: &Context<'_>) -> String {
1214
1214
if out. is_empty ( ) {
1215
1215
write ! (
1216
1216
& mut out,
1217
- "<h3 class=\" notable\" >Notable traits for {}</h3 >\
1217
+ "<div class=\" notable\" >Notable traits for {}</div >\
1218
1218
<code class=\" content\" >",
1219
1219
impl_. for_. print( cx)
1220
1220
) ;
@@ -1370,15 +1370,15 @@ fn render_impl(
1370
1370
"<div id=\" {}\" class=\" {}{} has-srclink\" >" ,
1371
1371
id, item_type, in_trait_class,
1372
1372
) ;
1373
- w. write_str ( "<code>" ) ;
1373
+ w. write_str ( "<h4 class= \" code-header \" >" ) ;
1374
1374
render_assoc_item (
1375
1375
w,
1376
1376
item,
1377
1377
link. anchor ( source_id. as_ref ( ) . unwrap_or ( & id) ) ,
1378
1378
ItemType :: Impl ,
1379
1379
cx,
1380
1380
) ;
1381
- w. write_str ( "</code >" ) ;
1381
+ w. write_str ( "</h4 >" ) ;
1382
1382
render_stability_since_raw (
1383
1383
w,
1384
1384
item. stable_since ( tcx) . as_deref ( ) ,
@@ -1396,7 +1396,7 @@ fn render_impl(
1396
1396
let id = cx. derive_id ( source_id. clone ( ) ) ;
1397
1397
write ! (
1398
1398
w,
1399
- "<div id=\" {}\" class=\" {}{} has-srclink\" ><code>" ,
1399
+ "<div id=\" {}\" class=\" {}{} has-srclink\" ><h4 class= \" code-header \" >" ,
1400
1400
id, item_type, in_trait_class
1401
1401
) ;
1402
1402
assoc_type (
@@ -1408,7 +1408,7 @@ fn render_impl(
1408
1408
"" ,
1409
1409
cx,
1410
1410
) ;
1411
- w. write_str ( "</code >" ) ;
1411
+ w. write_str ( "</h4 >" ) ;
1412
1412
write ! ( w, "<a href=\" #{}\" class=\" anchor\" ></a>" , id) ;
1413
1413
w. write_str ( "</div>" ) ;
1414
1414
}
@@ -1417,7 +1417,7 @@ fn render_impl(
1417
1417
let id = cx. derive_id ( source_id. clone ( ) ) ;
1418
1418
write ! (
1419
1419
w,
1420
- "<div id=\" {}\" class=\" {}{} has-srclink\" ><code>" ,
1420
+ "<div id=\" {}\" class=\" {}{} has-srclink\" ><h4 class= \" code-header \" >" ,
1421
1421
id, item_type, in_trait_class
1422
1422
) ;
1423
1423
assoc_const (
@@ -1429,7 +1429,7 @@ fn render_impl(
1429
1429
"" ,
1430
1430
cx,
1431
1431
) ;
1432
- w. write_str ( "</code >" ) ;
1432
+ w. write_str ( "</h4 >" ) ;
1433
1433
render_stability_since_raw (
1434
1434
w,
1435
1435
item. stable_since ( tcx) . as_deref ( ) ,
@@ -1444,7 +1444,7 @@ fn render_impl(
1444
1444
clean:: AssocTypeItem ( ref bounds, ref default) => {
1445
1445
let source_id = format ! ( "{}.{}" , item_type, name) ;
1446
1446
let id = cx. derive_id ( source_id. clone ( ) ) ;
1447
- write ! ( w, "<div id=\" {}\" class=\" {}{}\" ><code>" , id, item_type, in_trait_class, ) ;
1447
+ write ! ( w, "<div id=\" {}\" class=\" {}{}\" ><h4 class= \" code-header \" >" , id, item_type, in_trait_class, ) ;
1448
1448
assoc_type (
1449
1449
w,
1450
1450
item,
@@ -1454,7 +1454,7 @@ fn render_impl(
1454
1454
"" ,
1455
1455
cx,
1456
1456
) ;
1457
- w. write_str ( "</code >" ) ;
1457
+ w. write_str ( "</h4 >" ) ;
1458
1458
write ! ( w, "<a href=\" #{}\" class=\" anchor\" ></a>" , id) ;
1459
1459
w. write_str ( "</div>" ) ;
1460
1460
}
@@ -1641,7 +1641,7 @@ fn render_impl_summary(
1641
1641
write ! (
1642
1642
w,
1643
1643
"<div id=\" {}\" class=\" impl has-srclink\" {}>\
1644
- <code class=\" in-band\" >",
1644
+ <h3 class=\" code-header in-band\" >",
1645
1645
id, aliases
1646
1646
) ;
1647
1647
write ! ( w, "{}" , i. inner_impl( ) . print( use_absolute, cx) ) ;
@@ -1654,12 +1654,12 @@ fn render_impl_summary(
1654
1654
}
1655
1655
}
1656
1656
}
1657
- w. write_str ( "</code >" ) ;
1657
+ w. write_str ( "</h3 >" ) ;
1658
1658
} else {
1659
1659
write ! (
1660
1660
w,
1661
1661
"<div id=\" {}\" class=\" impl has-srclink\" {}>\
1662
- <code class=\" in-band\" >{}</code >",
1662
+ <h3 class=\" code-header in-band\" >{}</h3 >",
1663
1663
id,
1664
1664
aliases,
1665
1665
i. inner_impl( ) . print( false , cx)
0 commit comments