@@ -762,7 +762,6 @@ fn assoc_const(
762762 w : & mut Buffer ,
763763 it : & clean:: Item ,
764764 ty : & clean:: Type ,
765- _default : Option < & clean:: ConstantKind > ,
766765 link : AssocItemLink < ' _ > ,
767766 extra : & str ,
768767 cx : & Context < ' _ > ,
@@ -958,15 +957,9 @@ fn render_assoc_item(
958957 clean:: MethodItem ( ref m, _) => {
959958 method ( w, item, m. header , & m. generics , & m. decl , link, parent, cx, render_mode)
960959 }
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+ }
970963 clean:: AssocTypeItem ( ref bounds, ref default) => assoc_type (
971964 w,
972965 item,
@@ -1467,7 +1460,7 @@ fn render_impl(
14671460 w. write_str ( "</h4>" ) ;
14681461 w. write_str ( "</div>" ) ;
14691462 }
1470- clean:: AssocConstItem ( ref ty, ref default ) => {
1463+ clean:: AssocConstItem ( ref ty, _ ) => {
14711464 let source_id = format ! ( "{}.{}" , item_type, name) ;
14721465 let id = cx. derive_id ( source_id. clone ( ) ) ;
14731466 write ! (
@@ -1482,7 +1475,6 @@ fn render_impl(
14821475 w,
14831476 item,
14841477 ty,
1485- default. as_ref ( ) ,
14861478 link. anchor ( if trait_. is_some ( ) { & source_id } else { & id } ) ,
14871479 "" ,
14881480 cx,
0 commit comments