@@ -2405,13 +2405,14 @@ fn document(w: &mut fmt::Formatter<'_>, cx: &Context, item: &clean::Item) -> fmt
2405
2405
}
2406
2406
2407
2407
/// 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 {
2415
2416
let mut ids = cx. id_map . borrow_mut ( ) ;
2416
2417
write ! ( w, "<div class='docblock{}'>{}{}</div>" ,
2417
2418
if is_hidden { " hidden" } else { "" } ,
@@ -2425,7 +2426,8 @@ fn document_short(
2425
2426
cx : & Context ,
2426
2427
item : & clean:: Item ,
2427
2428
link : AssocItemLink < ' _ > ,
2428
- prefix : & str , is_hidden : bool
2429
+ prefix : & str ,
2430
+ is_hidden : bool ,
2429
2431
) -> fmt:: Result {
2430
2432
if let Some ( s) = item. doc_value ( ) {
2431
2433
let markdown = if s. contains ( '\n' ) {
@@ -4084,9 +4086,10 @@ fn render_impl(w: &mut fmt::Formatter<'_>, cx: &Context, i: &Impl, link: AssocIt
4084
4086
RenderMode :: ForDeref { mut_ : deref_mut_ } => should_render_item ( & item, deref_mut_) ,
4085
4087
} ;
4086
4088
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 {
4090
4093
( false , "" )
4091
4094
} else {
4092
4095
( true , " hidden" )
0 commit comments