@@ -34,6 +34,8 @@ use crate::html::markdown::MarkdownSummaryLine;
3434
3535const  ITEM_TABLE_OPEN :  & ' static  str  = "<div class=\" item-table\" >" ; 
3636const  ITEM_TABLE_CLOSE :  & ' static  str  = "</div>" ; 
37+ const  ITEM_TABLE_ROW_OPEN :  & ' static  str  = "<div class=\" item-row\" >" ; 
38+ const  ITEM_TABLE_ROW_CLOSE :  & ' static  str  = "</div>" ; 
3739
3840pub ( super )  fn  print_item ( cx :  & Context < ' _ > ,  item :  & clean:: Item ,  buf :  & mut  Buffer ,  page :  & Page < ' _ > )  { 
3941    debug_assert ! ( !item. is_stripped( ) ) ; 
@@ -256,9 +258,6 @@ fn item_module(w: &mut Buffer, cx: &Context<'_>, item: &clean::Item, items: &[cl
256258
257259    debug ! ( "{:?}" ,  indices) ; 
258260    let  mut  curty = None ; 
259-     // See: https://github.com/rust-lang/rust/issues/88545 
260-     let  item_table_block_size = 900usize ; 
261-     let  mut  item_table_nth_element = 0usize ; 
262261
263262    for  & idx in  & indices { 
264263        let  myitem = & items[ idx] ; 
@@ -285,13 +284,13 @@ fn item_module(w: &mut Buffer, cx: &Context<'_>, item: &clean::Item, items: &[cl
285284                id = cx. derive_id( short. to_owned( ) ) , 
286285                name = name
287286            ) ; 
288-             item_table_nth_element = 0 ; 
289287        } 
290288
291289        match  * myitem. kind  { 
292290            clean:: ExternCrateItem  {  ref  src }  => { 
293291                use  crate :: html:: format:: anchor; 
294292
293+                 w. write_str ( ITEM_TABLE_ROW_OPEN ) ; 
295294                match  * src { 
296295                    Some ( ref  src)  => write ! ( 
297296                        w, 
@@ -312,6 +311,7 @@ fn item_module(w: &mut Buffer, cx: &Context<'_>, item: &clean::Item, items: &[cl
312311                    ) , 
313312                } 
314313                w. write_str ( "</code></div>" ) ; 
314+                 w. write_str ( ITEM_TABLE_ROW_CLOSE ) ; 
315315            } 
316316
317317            clean:: ImportItem ( ref  import)  => { 
@@ -336,6 +336,7 @@ fn item_module(w: &mut Buffer, cx: &Context<'_>, item: &clean::Item, items: &[cl
336336
337337                let  add = if  stab. is_some ( )  {  " "  }  else  {  ""  } ; 
338338
339+                 w. write_str ( ITEM_TABLE_ROW_OPEN ) ; 
339340                write ! ( 
340341                    w, 
341342                    "<div class=\" item-left {stab}{add}import-item\" >\  
@@ -348,6 +349,7 @@ fn item_module(w: &mut Buffer, cx: &Context<'_>, item: &clean::Item, items: &[cl
348349                    imp = import. print( cx) , 
349350                    stab_tags = stab_tags. unwrap_or_default( ) , 
350351                ) ; 
352+                 w. write_str ( ITEM_TABLE_ROW_CLOSE ) ; 
351353            } 
352354
353355            _ => { 
@@ -368,6 +370,7 @@ fn item_module(w: &mut Buffer, cx: &Context<'_>, item: &clean::Item, items: &[cl
368370                let  add = if  stab. is_some ( )  {  " "  }  else  {  ""  } ; 
369371
370372                let  doc_value = myitem. doc_value ( ) . unwrap_or_default ( ) ; 
373+                 w. write_str ( ITEM_TABLE_ROW_OPEN ) ; 
371374                write ! ( 
372375                    w, 
373376                    "<div class=\" item-left {stab}{add}module-item\" >\  
@@ -390,15 +393,9 @@ fn item_module(w: &mut Buffer, cx: &Context<'_>, item: &clean::Item, items: &[cl
390393                        . collect:: <Vec <_>>( ) 
391394                        . join( " " ) , 
392395                ) ; 
396+                 w. write_str ( ITEM_TABLE_ROW_CLOSE ) ; 
393397            } 
394398        } 
395- 
396-         item_table_nth_element += 1 ; 
397-         if  item_table_nth_element > item_table_block_size { 
398-             w. write_str ( ITEM_TABLE_CLOSE ) ; 
399-             w. write_str ( ITEM_TABLE_OPEN ) ; 
400-             item_table_nth_element = 0 ; 
401-         } 
402399    } 
403400
404401    if  curty. is_some ( )  { 
0 commit comments