@@ -70,7 +70,7 @@ use crate::doctree;
70
70
use crate :: error:: Error ;
71
71
use crate :: formats:: cache:: { cache, Cache } ;
72
72
use crate :: formats:: item_type:: ItemType ;
73
- use crate :: formats:: { FormatRenderer , Impl } ;
73
+ use crate :: formats:: { AssocItemRender , FormatRenderer , Impl , RenderMode } ;
74
74
use crate :: html:: escape:: Escape ;
75
75
use crate :: html:: format:: fmt_impl_for_trait_page;
76
76
use crate :: html:: format:: Function ;
@@ -626,7 +626,7 @@ impl FormatRenderer for Context {
626
626
Ok ( ( ) )
627
627
}
628
628
629
- fn mod_item_out ( & mut self , _name : & str ) -> Result < ( ) , Error > {
629
+ fn mod_item_out ( & mut self , _item_name : & str ) -> Result < ( ) , Error > {
630
630
info ! ( "Recursed; leaving {}" , self . dst. display( ) ) ;
631
631
632
632
// Go back to where we were at
@@ -3266,17 +3266,6 @@ impl<'a> AssocItemLink<'a> {
3266
3266
}
3267
3267
}
3268
3268
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
-
3280
3269
fn render_assoc_items (
3281
3270
w : & mut Buffer ,
3282
3271
cx : & Context ,
0 commit comments