@@ -1739,8 +1739,8 @@ pub(crate) fn render_impl_summary(
1739
1739
// in documentation pages for trait with automatic implementations like "Send" and "Sync".
1740
1740
aliases : & [ String ] ,
1741
1741
) {
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) ) ;
1744
1744
let aliases = if aliases. is_empty ( ) {
1745
1745
String :: new ( )
1746
1746
} else {
@@ -1752,9 +1752,9 @@ pub(crate) fn render_impl_summary(
1752
1752
write ! ( w, "<h3 class=\" code-header in-band\" >" ) ;
1753
1753
1754
1754
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) ) ;
1756
1756
if show_def_docs {
1757
- for it in & i . inner_impl ( ) . items {
1757
+ for it in & inner_impl. items {
1758
1758
if let clean:: AssocTypeItem ( ref tydef, ref _bounds) = * it. kind {
1759
1759
w. write_str ( "<span class=\" where fmt-newline\" > " ) ;
1760
1760
assoc_type (
@@ -1772,11 +1772,11 @@ pub(crate) fn render_impl_summary(
1772
1772
}
1773
1773
}
1774
1774
} else {
1775
- write ! ( w, "{}" , i . inner_impl( ) . print( false , cx) ) ;
1775
+ write ! ( w, "{}" , inner_impl. print( false , cx) ) ;
1776
1776
}
1777
1777
write ! ( w, "</h3>" ) ;
1778
1778
1779
- let is_trait = i . inner_impl ( ) . trait_ . is_some ( ) ;
1779
+ let is_trait = inner_impl. trait_ . is_some ( ) ;
1780
1780
if is_trait {
1781
1781
if let Some ( portability) = portability ( & i. impl_item , Some ( parent) ) {
1782
1782
write ! ( w, "<span class=\" item-info\" >{}</span>" , portability) ;
0 commit comments