@@ -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
@@ -3255,17 +3255,6 @@ impl<'a> AssocItemLink<'a> {
32553255 }
32563256}
32573257
3258- enum AssocItemRender < ' a > {
3259- All ,
3260- DerefFor { trait_ : & ' a clean:: Type , type_ : & ' a clean:: Type , deref_mut_ : bool } ,
3261- }
3262-
3263- #[ derive( Copy , Clone , PartialEq ) ]
3264- enum RenderMode {
3265- Normal ,
3266- ForDeref { mut_ : bool } ,
3267- }
3268-
32693258fn render_assoc_items (
32703259 w : & mut Buffer ,
32713260 cx : & Context ,
0 commit comments