@@ -355,7 +355,7 @@ fn item_module(w: &mut Buffer, cx: &mut Context<'_>, item: &clean::Item, items:
355355 }
356356
357357 clean:: ImportItem ( ref import) => {
358- let ( stab , stab_tags) = if let Some ( import_def_id) = import. source . did {
358+ let stab_tags = if let Some ( import_def_id) = import. source . did {
359359 let ast_attrs = cx. tcx ( ) . get_attrs_unchecked ( import_def_id) ;
360360 let import_attrs = Box :: new ( clean:: Attributes :: from_ast ( ast_attrs) ) ;
361361
@@ -367,15 +367,12 @@ fn item_module(w: &mut Buffer, cx: &mut Context<'_>, item: &clean::Item, items:
367367 ..myitem. clone ( )
368368 } ;
369369
370- let stab = import_item. stability_class ( cx. tcx ( ) ) ;
371370 let stab_tags = Some ( extra_info_tags ( & import_item, item, cx. tcx ( ) ) ) ;
372- ( stab , stab_tags)
371+ stab_tags
373372 } else {
374- ( None , None )
373+ None
375374 } ;
376375
377- let add = if stab. is_some ( ) { " " } else { "" } ;
378-
379376 w. write_str ( ITEM_TABLE_ROW_OPEN ) ;
380377 let id = match import. kind {
381378 clean:: ImportKind :: Simple ( s) => {
@@ -391,11 +388,10 @@ fn item_module(w: &mut Buffer, cx: &mut Context<'_>, item: &clean::Item, items:
391388 } ;
392389 write ! (
393390 w,
394- "<div class=\" item-left{add}{stab} \" {id}>\
391+ "<div class=\" item-left\" {id}>\
395392 <code>{vis}{imp}</code>\
396393 </div>\
397394 {stab_tags_before}{stab_tags}{stab_tags_after}",
398- stab = stab. unwrap_or_default( ) ,
399395 vis = visibility_print_with_space( myitem. visibility( tcx) , myitem. item_id, cx) ,
400396 imp = import. print( cx) ,
401397 ) ;
@@ -417,9 +413,6 @@ fn item_module(w: &mut Buffer, cx: &mut Context<'_>, item: &clean::Item, items:
417413 _ => "" ,
418414 } ;
419415
420- let stab = myitem. stability_class ( cx. tcx ( ) ) ;
421- let add = if stab. is_some ( ) { " " } else { "" } ;
422-
423416 let visibility_emoji = match myitem. visibility ( tcx) {
424417 Some ( ty:: Visibility :: Restricted ( _) ) => {
425418 "<span title=\" Restricted Visibility\" > 🔒</span> "
@@ -437,7 +430,7 @@ fn item_module(w: &mut Buffer, cx: &mut Context<'_>, item: &clean::Item, items:
437430 } ;
438431 write ! (
439432 w,
440- "<div class=\" item-left{add}{stab} \" >\
433+ "<div class=\" item-left\" >\
441434 <a class=\" {class}\" href=\" {href}\" title=\" {title}\" >{name}</a>\
442435 {visibility_emoji}\
443436 {unsafety_flag}\
@@ -448,8 +441,6 @@ fn item_module(w: &mut Buffer, cx: &mut Context<'_>, item: &clean::Item, items:
448441 visibility_emoji = visibility_emoji,
449442 stab_tags = extra_info_tags( myitem, item, cx. tcx( ) ) ,
450443 class = myitem. type_( ) ,
451- add = add,
452- stab = stab. unwrap_or_default( ) ,
453444 unsafety_flag = unsafety_flag,
454445 href = item_path( myitem. type_( ) , myitem. name. unwrap( ) . as_str( ) ) ,
455446 title = [ myitem. type_( ) . to_string( ) , full_path( cx, myitem) ]
0 commit comments