@@ -2405,13 +2405,14 @@ fn document(w: &mut fmt::Formatter<'_>, cx: &Context, item: &clean::Item) -> fmt
24052405}
24062406
24072407/// Render md_text as markdown.
2408- fn render_markdown ( w : & mut fmt:: Formatter < ' _ > ,
2409- cx : & Context ,
2410- md_text : & str ,
2411- links : Vec < ( String , String ) > ,
2412- prefix : & str ,
2413- is_hidden : bool )
2414- -> fmt:: Result {
2408+ fn render_markdown (
2409+ w : & mut fmt:: Formatter < ' _ > ,
2410+ cx : & Context ,
2411+ md_text : & str ,
2412+ links : Vec < ( String , String ) > ,
2413+ prefix : & str ,
2414+ is_hidden : bool ,
2415+ ) -> fmt:: Result {
24152416 let mut ids = cx. id_map . borrow_mut ( ) ;
24162417 write ! ( w, "<div class='docblock{}'>{}{}</div>" ,
24172418 if is_hidden { " hidden" } else { "" } ,
@@ -2425,7 +2426,8 @@ fn document_short(
24252426 cx : & Context ,
24262427 item : & clean:: Item ,
24272428 link : AssocItemLink < ' _ > ,
2428- prefix : & str , is_hidden : bool
2429+ prefix : & str ,
2430+ is_hidden : bool ,
24292431) -> fmt:: Result {
24302432 if let Some ( s) = item. doc_value ( ) {
24312433 let markdown = if s. contains ( '\n' ) {
@@ -4084,9 +4086,10 @@ fn render_impl(w: &mut fmt::Formatter<'_>, cx: &Context, i: &Impl, link: AssocIt
40844086 RenderMode :: ForDeref { mut_ : deref_mut_ } => should_render_item ( & item, deref_mut_) ,
40854087 } ;
40864088
4087- let ( is_hidden, extra_class) = if trait_. is_none ( ) ||
4088- item. doc_value ( ) . is_some ( ) ||
4089- item. inner . is_associated ( ) {
4089+ let ( is_hidden, extra_class) = if ( trait_. is_none ( ) ||
4090+ item. doc_value ( ) . is_some ( ) ||
4091+ item. inner . is_associated ( ) ) &&
4092+ !is_default_item {
40904093 ( false , "" )
40914094 } else {
40924095 ( true , " hidden" )
0 commit comments