@@ -762,7 +762,6 @@ fn assoc_const(
762
762
w : & mut Buffer ,
763
763
it : & clean:: Item ,
764
764
ty : & clean:: Type ,
765
- _default : Option < & clean:: ConstantKind > ,
766
765
link : AssocItemLink < ' _ > ,
767
766
extra : & str ,
768
767
cx : & Context < ' _ > ,
@@ -958,15 +957,9 @@ fn render_assoc_item(
958
957
clean:: MethodItem ( ref m, _) => {
959
958
method ( w, item, m. header , & m. generics , & m. decl , link, parent, cx, render_mode)
960
959
}
961
- clean:: AssocConstItem ( ref ty, ref default) => assoc_const (
962
- w,
963
- item,
964
- ty,
965
- default. as_ref ( ) ,
966
- link,
967
- if parent == ItemType :: Trait { " " } else { "" } ,
968
- cx,
969
- ) ,
960
+ clean:: AssocConstItem ( ref ty, _) => {
961
+ assoc_const ( w, item, ty, link, if parent == ItemType :: Trait { " " } else { "" } , cx)
962
+ }
970
963
clean:: AssocTypeItem ( ref bounds, ref default) => assoc_type (
971
964
w,
972
965
item,
@@ -1467,7 +1460,7 @@ fn render_impl(
1467
1460
w. write_str ( "</h4>" ) ;
1468
1461
w. write_str ( "</div>" ) ;
1469
1462
}
1470
- clean:: AssocConstItem ( ref ty, ref default ) => {
1463
+ clean:: AssocConstItem ( ref ty, _ ) => {
1471
1464
let source_id = format ! ( "{}.{}" , item_type, name) ;
1472
1465
let id = cx. derive_id ( source_id. clone ( ) ) ;
1473
1466
write ! (
@@ -1482,7 +1475,6 @@ fn render_impl(
1482
1475
w,
1483
1476
item,
1484
1477
ty,
1485
- default. as_ref ( ) ,
1486
1478
link. anchor ( if trait_. is_some ( ) { & source_id } else { & id } ) ,
1487
1479
"" ,
1488
1480
cx,
0 commit comments