@@ -1739,8 +1739,8 @@ pub(crate) fn render_impl_summary(
17391739 // in documentation pages for trait with automatic implementations like "Send" and "Sync".
17401740 aliases : & [ String ] ,
17411741) {
1742- let id =
1743- cx. derive_id ( get_id_for_impl ( & i . inner_impl ( ) . for_ , i . inner_impl ( ) . trait_ . as_ref ( ) , cx) ) ;
1742+ let inner_impl = i . inner_impl ( ) ;
1743+ let id = cx. derive_id ( get_id_for_impl ( & inner_impl. for_ , inner_impl. trait_ . as_ref ( ) , cx) ) ;
17441744 let aliases = if aliases. is_empty ( ) {
17451745 String :: new ( )
17461746 } else {
@@ -1752,9 +1752,9 @@ pub(crate) fn render_impl_summary(
17521752 write ! ( w, "<h3 class=\" code-header in-band\" >" ) ;
17531753
17541754 if let Some ( use_absolute) = use_absolute {
1755- write ! ( w, "{}" , i . inner_impl( ) . print( use_absolute, cx) ) ;
1755+ write ! ( w, "{}" , inner_impl. print( use_absolute, cx) ) ;
17561756 if show_def_docs {
1757- for it in & i . inner_impl ( ) . items {
1757+ for it in & inner_impl. items {
17581758 if let clean:: AssocTypeItem ( ref tydef, ref _bounds) = * it. kind {
17591759 w. write_str ( "<span class=\" where fmt-newline\" > " ) ;
17601760 assoc_type (
@@ -1772,11 +1772,11 @@ pub(crate) fn render_impl_summary(
17721772 }
17731773 }
17741774 } else {
1775- write ! ( w, "{}" , i . inner_impl( ) . print( false , cx) ) ;
1775+ write ! ( w, "{}" , inner_impl. print( false , cx) ) ;
17761776 }
17771777 write ! ( w, "</h3>" ) ;
17781778
1779- let is_trait = i . inner_impl ( ) . trait_ . is_some ( ) ;
1779+ let is_trait = inner_impl. trait_ . is_some ( ) ;
17801780 if is_trait {
17811781 if let Some ( portability) = portability ( & i. impl_item , Some ( parent) ) {
17821782 write ! ( w, "<span class=\" item-info\" >{}</span>" , portability) ;
0 commit comments