@@ -70,7 +70,7 @@ use crate::doctree;
7070use crate :: error:: Error ;
7171use crate :: formats:: cache:: { cache, Cache } ;
7272use crate :: formats:: item_type:: ItemType ;
73- use crate :: formats:: { FormatRenderer , Impl } ;
73+ use crate :: formats:: { AssocItemRender , FormatRenderer , Impl , RenderMode } ;
7474use crate :: html:: escape:: Escape ;
7575use crate :: html:: format:: fmt_impl_for_trait_page;
7676use crate :: html:: format:: Function ;
@@ -626,7 +626,7 @@ impl FormatRenderer for Context {
626626 Ok ( ( ) )
627627 }
628628
629- fn mod_item_out ( & mut self , _name : & str ) -> Result < ( ) , Error > {
629+ fn mod_item_out ( & mut self , _item_name : & str ) -> Result < ( ) , Error > {
630630 info ! ( "Recursed; leaving {}" , self . dst. display( ) ) ;
631631
632632 // Go back to where we were at
@@ -3266,17 +3266,6 @@ impl<'a> AssocItemLink<'a> {
32663266 }
32673267}
32683268
3269- enum AssocItemRender < ' a > {
3270- All ,
3271- DerefFor { trait_ : & ' a clean:: Type , type_ : & ' a clean:: Type , deref_mut_ : bool } ,
3272- }
3273-
3274- #[ derive( Copy , Clone , PartialEq ) ]
3275- enum RenderMode {
3276- Normal ,
3277- ForDeref { mut_ : bool } ,
3278- }
3279-
32803269fn render_assoc_items (
32813270 w : & mut Buffer ,
32823271 cx : & Context ,
0 commit comments