@@ -573,10 +573,6 @@ fn item_trait(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, t: &clean::Tra
573
573
)
574
574
}
575
575
576
- fn write_loading_content ( w : & mut Buffer , extra_content : & str ) {
577
- write ! ( w, "{}<span class=\" loading-content\" >Loading content...</span>" , extra_content)
578
- }
579
-
580
576
fn trait_item ( w : & mut Buffer , cx : & Context < ' _ > , m : & clean:: Item , t : & clean:: Item ) {
581
577
let name = m. name . as_ref ( ) . unwrap ( ) ;
582
578
info ! ( "Documenting {} on {:?}" , name, t. name) ;
@@ -601,7 +597,7 @@ fn item_trait(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, t: &clean::Tra
601
597
for t in types {
602
598
trait_item ( w, cx, t, it) ;
603
599
}
604
- write_loading_content ( w , "</div>" ) ;
600
+ w . write_str ( "</div>" ) ;
605
601
}
606
602
607
603
if !consts. is_empty ( ) {
@@ -614,7 +610,7 @@ fn item_trait(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, t: &clean::Tra
614
610
for t in consts {
615
611
trait_item ( w, cx, t, it) ;
616
612
}
617
- write_loading_content ( w , "</div>" ) ;
613
+ w . write_str ( "</div>" ) ;
618
614
}
619
615
620
616
// Output the documentation for each function individually
@@ -628,7 +624,7 @@ fn item_trait(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, t: &clean::Tra
628
624
for m in required {
629
625
trait_item ( w, cx, m, it) ;
630
626
}
631
- write_loading_content ( w , "</div>" ) ;
627
+ w . write_str ( "</div>" ) ;
632
628
}
633
629
if !provided. is_empty ( ) {
634
630
write_small_section_header (
@@ -640,7 +636,7 @@ fn item_trait(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, t: &clean::Tra
640
636
for m in provided {
641
637
trait_item ( w, cx, m, it) ;
642
638
}
643
- write_loading_content ( w , "</div>" ) ;
639
+ w . write_str ( "</div>" ) ;
644
640
}
645
641
646
642
// If there are methods directly on this trait object, render them here.
@@ -703,7 +699,6 @@ fn item_trait(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, t: &clean::Tra
703
699
& [ ] ,
704
700
) ;
705
701
}
706
- write_loading_content ( w, "" ) ;
707
702
}
708
703
709
704
write_small_section_header (
@@ -715,7 +710,7 @@ fn item_trait(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, t: &clean::Tra
715
710
for implementor in concrete {
716
711
render_implementor ( cx, implementor, it, w, & implementor_dups, & [ ] ) ;
717
712
}
718
- write_loading_content ( w , "</div>" ) ;
713
+ w . write_str ( "</div>" ) ;
719
714
720
715
if t. is_auto {
721
716
write_small_section_header (
@@ -734,7 +729,7 @@ fn item_trait(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, t: &clean::Tra
734
729
& collect_paths_for_type ( implementor. inner_impl ( ) . for_ . clone ( ) , & cx. cache ) ,
735
730
) ;
736
731
}
737
- write_loading_content ( w , "</div>" ) ;
732
+ w . write_str ( "</div>" ) ;
738
733
}
739
734
} else {
740
735
// even without any implementations to write in, we still want the heading and list, so the
@@ -743,18 +738,16 @@ fn item_trait(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, t: &clean::Tra
743
738
w,
744
739
"implementors" ,
745
740
"Implementors" ,
746
- "<div class=\" item-list\" id=\" implementors-list\" >" ,
741
+ "<div class=\" item-list\" id=\" implementors-list\" ></div> " ,
747
742
) ;
748
- write_loading_content ( w, "</div>" ) ;
749
743
750
744
if t. is_auto {
751
745
write_small_section_header (
752
746
w,
753
747
"synthetic-implementors" ,
754
748
"Auto implementors" ,
755
- "<div class=\" item-list\" id=\" synthetic-implementors-list\" >" ,
749
+ "<div class=\" item-list\" id=\" synthetic-implementors-list\" ></div> " ,
756
750
) ;
757
- write_loading_content ( w, "</div>" ) ;
758
751
}
759
752
}
760
753
0 commit comments